{"answers":{"affected":"4 open source packages ship an affected version, including fast-xml-parser. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25896 exists.","fix":"Upgrade fast-xml-parser to a fixed version for your release line: 4.5.4 or 5.3.5.","what":"CVE-2026-25896 is a critical cross-site scripting vulnerability in NaturalIntelligence fast-xml-parser, published on 20 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-25896 and fix it if it is affected.\n\nWhat it is: CVE-2026-25896 is a critical cross-site scripting vulnerability in NaturalIntelligence fast-xml-parser, published on 20 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25896 exists.\n\nAffected packages and fixed versions:\n- fast-xml-parser (npm): affected from 4.1.3; fixed in 4.5.4\n- fast-xml-parser (npm): affected from 4.1.3; fixed in 4.5.4\n- fast-xml-parser (npm): affected from 5.0.0; fixed in 5.3.5\n- fast-xml-parser (npm): affected from 5.0.0; fixed in 5.3.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25896/ (Markdown: https://insights.sbomify.com/CVE-2026-25896/index.md)","id":"CVE-2026-25896","markdown":"https://insights.sbomify.com/CVE-2026-25896/index.md","name":"CVE-2026-25896","record":{"aliases":["CLEANSTART-2026-GZ45856","CLEANSTART-2026-HR43614","CLSA-2026-1789376231","DEBIAN-CVE-2026-25896","ECHO-88fe-9a88-58df","GHSA-m7jm-9gc2-mpf2","MINI-2385-pf9r-h7m8","MINI-25rr-956p-gcqq","MINI-28fg-6xx3-336q","MINI-689f-45j3-772r","MINI-7qm3-vp2c-5r8j","MINI-fhg7-hgff-gf9w","MINI-gmm8-x9fm-fqxh","MINI-j7qc-4c6f-qvvc","MINI-mw86-vpcv-ph88","MINI-p58x-6m5q-33m4","MINI-phq2-7mcj-9wxq","MINI-r43f-3rpj-x5cr","MINI-vxq9-53mx-mww3","MINI-xm8c-q9hr-6m52","ROOT-APP-NPM-CVE-2026-25896","UBUNTU-CVE-2026-25896"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript XML parser","requires_auth":"none","summary":"An attacker can bypass XML entity encoding via regex injection in DOCTYPE names, leading to Cross-Site Scripting (XSS) when parsed output is rendered.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fast-xml-parser","vendor":"naturalintelligence"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-185","name":"Incorrect Regular Expression"}],"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 (\u0026lt;, \u0026gt;, \u0026amp;, \u0026quot;, \u0026apos;) with arbitrary values. This bypasses entity encoding and leads to XSS when parsed output is rendered. This vulnerability is fixed in 5.3.5.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names","id":"CVE-2026-25896","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":4,"n_references":4,"next":{"headline":"ImageMagick has heap overflow in sun decoder on 32-bit systems that can result in out of bounds write","id":"CVE-2026-25897"},"packages":[{"ecosystem":"npm","fixed":["4.5.4"],"introduced":["4.1.3"],"last_affected":[],"package":"fast-xml-parser","purl":null,"source":"GHSA-m7jm-9gc2-mpf2"},{"ecosystem":"npm","fixed":["4.5.4"],"introduced":["4.1.3"],"last_affected":[],"package":"fast-xml-parser","purl":"pkg:npm/fast-xml-parser","source":"GHSA-m7jm-9gc2-mpf2"},{"ecosystem":"npm","fixed":["5.3.5"],"introduced":["5.0.0"],"last_affected":[],"package":"fast-xml-parser","purl":null,"source":"GHSA-m7jm-9gc2-mpf2"},{"ecosystem":"npm","fixed":["5.3.5"],"introduced":["5.0.0"],"last_affected":[],"package":"fast-xml-parser","purl":"pkg:npm/fast-xml-parser","source":"GHSA-m7jm-9gc2-mpf2"}],"prev":{"headline":"FUXA Unauthenticated Remote Code Execution via Arbitrary File Write in Upload API","id":"CVE-2026-25895"},"products":["fast-xml-parser"],"published":"2026-02-20","related":[{"cvss_score":7.5,"headline":"fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)","id":"CVE-2026-33036","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":7.5,"headline":"fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)","id":"CVE-2026-26278","kev_date_added":null,"published":"2026-02-19"},{"cvss_score":7.5,"headline":"fast-xml-parser has RangeError DoS Numeric Entities Bug","id":"CVE-2026-25128","kev_date_added":null,"published":"2026-01-30"},{"cvss_score":7.5,"headline":"ReDOS at currency parsing fast-xml-parser","id":"CVE-2024-41818","kev_date_added":null,"published":"2024-07-29"},{"cvss_score":7.5,"headline":"Regex Injection via Doctype Entities","id":"CVE-2023-34104","kev_date_added":null,"published":"2023-06-06"},{"cvss_score":6.1,"headline":"fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters","id":"CVE-2026-41650","kev_date_added":null,"published":"2026-05-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-10","vendors":["NaturalIntelligence"]},"summary":"An attacker can bypass XML entity encoding via regex injection in DOCTYPE names, leading to Cross-Site Scripting (XSS) when parsed output is rendered.","url":"https://insights.sbomify.com/CVE-2026-25896/"}