CRITICAL🇵🇱 Wersja polska

CVE-2026-25896

CVSS 9.3v3.1pub. 2026-02-20upd. 2026-09-02

fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. From 4.1.3to before 5.3.5, a dot (.) in a DOCTYPE entity name is treated as a regex wildcard during entity replacement, allowing an attacker to shadow built-in XML entities (<, >, &, ", ') with arbitrary values. This bypasses entity encoding and leads to XSS when parsed output is rendered. This vulnerability is fixed in 5.3.5.

🤖 AI Analysis
How it works

The vulnerability results from improper handling of dot (.) characters in entity names defined in the DOCTYPE section of an XML document — CWE-185 (regular expression error). The dot character is treated as a regex wildcard, allowing an attacker to define an entity whose name matches the names of built-in XML entities. As a result, the attacker can substitute arbitrary values in place of standard entities such as < or >, effectively bypassing their encoding mechanism. When the result of processing such an XML document is subsequently rendered in a browser, the injected HTML or JavaScript code is executed.

Impact

An attacker can trigger arbitrary JavaScript code execution in the context of the victim's browser (XSS), enabling session theft, credential theft, or performing actions on behalf of the user. Due to the changed scope (Scope: Changed), the impact may extend beyond the directly attacked application.

Mitigation & patch

Update the fast-xml-parser library to version 5.3.5 or later. The fix is available in the official v5.3.5 release in the vendor's GitHub repository.

Who is affected

Naturalintelligence fast-xml-parser library in versions from 4.1.3 to before 5.3.5 (inclusive).

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N
  • Naturalintelligence Fast Xml Parser

    APP
    Naturalintelligence
    4.1.3 – 5.3.5 (excl.)
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
Tags
XSS
CWE
References

Related vulnerabilities

CVE-2026-33036HIGH7.5same product

fast-xml-parser allows users to process XML from JS object without C/C++ based libraries or callbacks. Version...

CVE-2026-26278HIGH7.5same product

fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C+...

CVE-2026-25128HIGH7.5same product

fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C+...

CVE-2024-41818HIGH7.5same product

fast-xml-parser is an open source, pure javascript xml parser. a ReDOS exists on currency.js. This vulnerabili...

CVE-2023-34104HIGH7.5same product

fast-xml-parser is an open source, pure javascript xml parser. fast-xml-parser allows special characters in en...