Cross-site scripting via wildcard DOCTYPE entity replacement
Published Feb 20, 2026 · Updated Feb 20, 2026
Cross-site scripting in fast-xml-parser 4.1.3 through 4.5.3 and 5.0.0 through 5.3.4 allows remote attackers to inject script. DocTypeReader.js and OrderedObjParser.js pass DOCTYPE entity names directly into RegExp(), so a dot matches characters in built-in entity references and substitutes attacker-controlled text before built-ins are decoded. Default entity processing is sufficient; XSS occurs when an application parses attacker-supplied XML and renders the resulting value into HTML.
Summary
What happened
Cross-site scripting in fast-xml-parser 4.1.3 through 4.5.3 and 5.0.0 through 5.3.4 allows remote attackers to inject script. DocTypeReader.js and OrderedObjParser.js pass DOCTYPE entity names directly into RegExp(), so a dot matches characters in built-in entity references and substitutes attacker-controlled text before built-ins are decoded. Default entity processing is sufficient; XSS occurs when an application parses attacker-supplied XML and renders the resulting value into HTML.
The record
- CVE
- CVE-2026-25896
- Published
- Feb 20, 2026
- Updated
- Feb 20, 2026
- Vendor
- Natural Intelligence
- Product
- fast-xml-parser
- Classifications
- CWE-79, CWE-185, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 20, 2026CVE publishedPublication date reported by the CVE source.
- Feb 20, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.1.3, < 5.3.5
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-m7jm-9gc2-mpf2 crafted DOCTYPE proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo