Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 64%

CVE-2026-25896: CWE-185: Incorrect Regular Expression in NaturalIntelligence fast-xml-parser

0
Critical
VulnerabilityCVE-2026-25896cvecve-2026-25896cwe-185
Published: 02/20/2026 (02/20/2026, 20:57:48 UTC)
Source: CVE Database V5
Vendor/Project: NaturalIntelligence
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N

Affected software

Affected versions
>=4.1.3 <5.3.5

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 11:46:37 UTC

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 &lt;, &gt;, &amp;, &quot;, and &apos; 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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses