CVE-2026-25896 - fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C+
CVE-2026-25896 + fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C+ + Critical + 2026-02-20
One-sentence business risk
The vulnerable component sits in a commonly deployed application path and can create a material breach, outage, or compliance risk.
Research notes
- Root cause: 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.
- Affected versions: before 5.
- Fixed / safe versions: fixed in 5.3.5…
- Public exploit / PoC signal: the consulted NVD/GHSA/vendor sources describe the trigger class; treat it as reproducible until patched.
- CVSS: 9.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N.
Exact vulnerable code pattern
serve_uploaded_bytes(content_type=request.content_type)
Fixed / mitigated code pattern
sniff media, force an allowlisted image type, and set X-Content-Type-Options: nosniff
Dependency or runtime update:
rg -n "affected component|CVE-2026-25896" .
# update affected runtime/product to fixed in 5.3.5.
Step-by-step integration guide
- Inventory
affected componentacross source, lockfiles, SBOMs, container images, CI images, and deployment manifests. - Upgrade to
fixed in 5.3.5.or apply the exact vendor patch referenced below. - Replace the vulnerable
xsspattern with the fixed pattern and fail closed on malformed input. - Add a regression test that exercises the advisory trigger and proves the request is rejected, bounded, or authorized.
- Deploy through canary, monitor security logs and resource metrics, then remove temporary edge blocks only after all runtimes are fixed.
Alternative mitigations
- Disable the vulnerable feature path while the package/runtime update rolls out.
- Add WAF or reverse-proxy rules for traversal tokens, prototype-polluting keys, oversized frames, shell metacharacters, or unauthenticated tool calls matching the trigger class.
- Restrict internal egress, rotate exposed secrets, and revoke affected tokens/keys if the vulnerability can disclose config, logs, JWT secrets, proxy credentials, or PKI material.
- For admin/API authorization issues, temporarily require elevated roles and explicit ownership checks at the gateway.
Detection signature
id: cve-2026-25896-fast-xml-parser-allows-users-to-validate-xml-par
source: NVD bulk JSON feed
dependency_or_product: "affected component"
affected: "before 5"
fixed: "fixed in 5.3.5."
signals:
- "xss"
- "../"
- "__proto__"
- "tools/call"
- "wp_ajax_nopriv"
- "pickle.loads"
- "shell command construction"
action: "upgrade, add regression test, and verify deploy artifact"
Copy-paste skill
You are remediating CVE-2026-25896 (fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C+) in this repository.
Find every affected dependency, runtime, image, service configuration, and reachable code path. Upgrade or patch to fixed in 5.3.5.. Replace the vulnerable xss pattern with a fail-closed implementation, add a regression test for the trigger shape, and update deployment/SBOM artifacts. If this repository does not control the affected runtime, create TRIAGE.md naming the owner, affected version, fixed version, and blocking decision.
Keywords, affected tech stack, and revenue tags
- Keywords:
CVE-2026-25896,xss,affected component,NVD bulk JSON feed. - Affected tech stack:
general. - Revenue tags:
sellable_to_fintech,enterprise_blocker,zero_day_gold.
References
- https://access.redhat.com/errata/RHSA-2026:6174
- https://access.redhat.com/errata/RHSA-2026:6802
- https://access.redhat.com/errata/RHSA-2026:7110
- https://access.redhat.com/errata/RHSA-2026:7128
- https://access.redhat.com/security/cve/CVE-2026-25896
- https://bugzilla.redhat.com/show_bug.cgi?id=2441501
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/943ef0eb1b2d3284e72dd74f44a042ee9f07026e
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/ddcd0acf26ddd682cb0dc15a2bd6aa3b96bb1e69
- https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.3.5
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-m7jm-9gc2-mpf2
- https://nvd.nist.gov/vuln/detail/CVE-2026-25896
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25896.json