{"answers":{"affected":"4 open source packages ship an affected version, including fast-xml-parser. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-27942 in the wild and no public exploit code.","fix":"Upgrade fast-xml-parser to a fixed version for your release line: 4.5.4 or 5.3.8.","what":"CVE-2026-27942 is a low-severity denial of service vulnerability in NaturalIntelligence fast-xml-parser, published on 26 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-27942 and fix it if it is affected.\n\nWhat it is: CVE-2026-27942 is a low-severity denial of service vulnerability in NaturalIntelligence fast-xml-parser, published on 26 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-27942 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fast-xml-parser (npm): affected from 4.0.0-beta.0; fixed in 4.5.4\n- fast-xml-parser (npm): affected from 4.0.0-beta.0; fixed in 4.5.4\n- fast-xml-parser (npm): affected from 5.0.0; fixed in 5.3.8\n- fast-xml-parser (npm): affected from 5.0.0; fixed in 5.3.8\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-27942/ (Markdown: https://insights.sbomify.com/CVE-2026-27942/index.md)","id":"CVE-2026-27942","markdown":"https://insights.sbomify.com/CVE-2026-27942/index.md","name":"CVE-2026-27942","record":{"aliases":["CLEANSTART-2026-DD01525","CLEANSTART-2026-ZT14752","CLSA-2026-1789289706","DEBIAN-CVE-2026-27942","ECHO-a140-4efb-7c2a","GHSA-fj3w-jwp8-x2g3","MINI-3jx3-mqx7-99pm","MINI-44qw-grm7-q322","MINI-59p8-fjv4-pr8g","MINI-99c3-c23w-cgx8","MINI-cf2r-m833-4r76","MINI-cmqj-g259-pf97","MINI-cx7c-xh4j-mf56","MINI-fx5h-8735-hhg5","MINI-j5r7-w9x8-9w4c","MINI-mxwx-jm76-j46x","MINI-qf92-hc7x-fvjh","MINI-r833-m6hq-gcw5","MINI-v36x-x8gx-26j3","MINI-v763-v69w-jvrm","MINI-wvgj-5ffg-8cj2","ROOT-APP-NPM-CVE-2026-27942","UBUNTU-CVE-2026-27942"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript XML parser","requires_auth":"none","summary":"An attacker can cause a stack overflow crash in fast-xml-parser by using the XML builder with preserveOrder enabled, leading to denial of service.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fast-xml-parser","vendor":"naturalintelligence"}],"cvss":{"score":2.7,"severity":"low","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"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. Prior to version 5.3.8, the application crashes with stack overflow when user use XML builder with `preserveOrder:true`. Version 5.3.8 fixes the issue. As a workaround, use XML builder with `preserveOrder:false` or check the input data before passing to builder.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"fast-xml-parser has stack overflow in XMLBuilder with preserveOrder","id":"CVE-2026-27942","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":3,"next":{"headline":"OpenEMR's Eye Exam View Trusts form_id Without Verifying Patient/Encounter Ownership","id":"CVE-2026-27943"},"packages":[{"ecosystem":"npm","fixed":["4.5.4"],"introduced":["4.0.0-beta.0"],"last_affected":[],"package":"fast-xml-parser","purl":null,"source":"GHSA-fj3w-jwp8-x2g3"},{"ecosystem":"npm","fixed":["4.5.4"],"introduced":["4.0.0-beta.0"],"last_affected":[],"package":"fast-xml-parser","purl":"pkg:npm/fast-xml-parser","source":"GHSA-fj3w-jwp8-x2g3"},{"ecosystem":"npm","fixed":["5.3.8"],"introduced":["5.0.0"],"last_affected":[],"package":"fast-xml-parser","purl":null,"source":"GHSA-fj3w-jwp8-x2g3"},{"ecosystem":"npm","fixed":["5.3.8"],"introduced":["5.0.0"],"last_affected":[],"package":"fast-xml-parser","purl":"pkg:npm/fast-xml-parser","source":"GHSA-fj3w-jwp8-x2g3"}],"prev":{"headline":"Code injection in openlit","id":"CVE-2026-27941"},"products":["fast-xml-parser"],"published":"2026-02-26","related":[{"cvss_score":9.3,"headline":"fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names","id":"CVE-2026-25896","kev_date_added":null,"published":"2026-02-20"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["NaturalIntelligence"]},"summary":"An attacker can cause a stack overflow crash in fast-xml-parser by using the XML builder with preserveOrder enabled, leading to denial of service.","url":"https://insights.sbomify.com/CVE-2026-27942/"}