CVE-2026-25896: CWE-185: Incorrect Regular Expression in NaturalIntelligence fast-xml-parser
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
Technical Summary
The fast-xml-parser library, used for XML validation and parsing without native dependencies, has a vulnerability (CVE-2026-25896) in versions >=4.1.3 and <5.3.5. The vulnerability arises because a dot character in a DOCTYPE entity name is treated as a regex wildcard during entity replacement, enabling attackers to shadow standard XML entities such as <, >, &, ", and ' with arbitrary values. This behavior bypasses entity encoding protections and can lead to cross-site scripting (XSS) when the XML output is rendered in a context that executes scripts. The vulnerability is classified under CWE-185 (Incorrect Regular Expression) and CWE-79 (Cross-Site Scripting). The issue has been addressed and fixed in version 5.3.5 of fast-xml-parser. Red Hat has published advisories and errata addressing this vulnerability and providing updated packages.
Potential Impact
An attacker can exploit this vulnerability to bypass XML entity encoding by using a crafted DOCTYPE entity name containing a dot, which is treated as a regex wildcard. This allows the attacker to replace built-in XML entities with arbitrary values, resulting in cross-site scripting (XSS) when the parsed XML output is rendered. The CVSS v3.1 score is 9.3 (critical), indicating high impact with network attack vector, low attack complexity, no privileges or user interaction required, and scope change. The vulnerability impacts confidentiality and integrity but not availability.
Mitigation Recommendations
A fix is available in fast-xml-parser version 5.3.5. Users and organizations should upgrade to version 5.3.5 or later to remediate this vulnerability. Red Hat has issued security advisories and errata with updated packages addressing this issue. No additional mitigation steps are required if the fixed version is deployed.
CVE-2026-25896: CWE-185: Incorrect Regular Expression in NaturalIntelligence fast-xml-parser
Description
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.
CVSS v3.1
Score 9.3critical
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The fast-xml-parser library, used for XML validation and parsing without native dependencies, has a vulnerability (CVE-2026-25896) in versions >=4.1.3 and <5.3.5. The vulnerability arises because a dot character in a DOCTYPE entity name is treated as a regex wildcard during entity replacement, enabling attackers to shadow standard XML entities such as <, >, &, ", and ' with arbitrary values. This behavior bypasses entity encoding protections and can lead to cross-site scripting (XSS) when the XML output is rendered in a context that executes scripts. The vulnerability is classified under CWE-185 (Incorrect Regular Expression) and CWE-79 (Cross-Site Scripting). The issue has been addressed and fixed in version 5.3.5 of fast-xml-parser. Red Hat has published advisories and errata addressing this vulnerability and providing updated packages.
Potential Impact
An attacker can exploit this vulnerability to bypass XML entity encoding by using a crafted DOCTYPE entity name containing a dot, which is treated as a regex wildcard. This allows the attacker to replace built-in XML entities with arbitrary values, resulting in cross-site scripting (XSS) when the parsed XML output is rendered. The CVSS v3.1 score is 9.3 (critical), indicating high impact with network attack vector, low attack complexity, no privileges or user interaction required, and scope change. The vulnerability impacts confidentiality and integrity but not availability.
Mitigation Recommendations
A fix is available in fast-xml-parser version 5.3.5. Users and organizations should upgrade to version 5.3.5 or later to remediate this vulnerability. Red Hat has issued security advisories and errata with updated packages addressing this issue. No additional mitigation steps are required if the fixed version is deployed.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-06T21:08:39.130Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-25896","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7110","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7128","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6174","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6802","vendor":"Red Hat"}]
Threat ID: 6998cf5abe58cf853bb24fa1
Added to database: 02/20/2026, 21:17:14 UTC
Last enriched: 07/08/2026, 11:46:37 UTC
Last updated: 07/09/2026, 19:47:31 UTC
Views: 1350
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.