Home / NaturalIntelligence / fast-xml-parser / CVE-2026-27942
CVE-2026-27942: is it exploited, and which versions of NaturalIntelligence fast-xml-parser are affected and fixed?
CVE-2026-27942 is a buffer overflow vulnerability in NaturalIntelligence fast-xml-parser. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: fast-xml-parser from 5.0.0 before 5.3.8 and fast-xml-parser from 4.0.0-beta.0 before 4.5.4 (GitHub advisory GHSA-fj3w-jwp8-x2g3). Fixed in 5.3.8 and 4.5.4 (GitHub advisory GHSA-fj3w-jwp8-x2g3). Severity: Low (2.7, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-27942?
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
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.
From the CVE record by GitHub_M, last updated June 23, 2026, 15:50 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| NaturalIntelligence | fast-xml-parser | < 5.3.8 |
As the CVE record by GitHub_M states it, last updated June 23, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | fast-xml-parser | >= 5.0.0, < 5.3.8 | 5.3.8 | GHSA-fj3w-jwp8-x2g3 |
| npm | fast-xml-parser | >= 4.0.0-beta.0, < 4.5.4 | 4.5.4 | GHSA-fj3w-jwp8-x2g3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 6, 2026. Summary: fast-xml-parser has stack overflow in XMLBuilder with preserveOrder.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| naturalintelligence | fast-xml-parser | before 4.5.4 | application |
| naturalintelligence | fast-xml-parser | from 5.0.0 before 5.3.8 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:27 UTC.
How severe is CVE-2026-27942?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.7 | CVSS 4.0 | 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 | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-27942 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, February 26, 2026)
- EPSS
- 0.53% probability of exploitation activity in the next 30 days, percentile 46.7 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-120 Buffer Copy without Checking Size of Input
Where are the vendor advisories and references?
- https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3 x_refsource_CONFIRM
- https://github.com/NaturalIntelligence/fast-xml-parser/pull/791 x_refsource_MISC
- https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- February 25, 2026
- Published
- February 26, 2026, 01:22 UTC
- CVE record updated
- June 23, 2026, 15:50 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 10:27 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect fast-xml-parser?
- Dec 1, 2026CVE-2026-141469 NaturalIntelligence fast-xml-parser: denial of service (uncontrolled resource consumption)
- Nov 10, 2026CVE-2026-126066 NaturalIntelligence fast-xml-parser: denial of service through slow algorithm
- Aug 13, 2026CVE-2026-73569 NaturalIntelligence fast-xml-parser: XML entity expansion (billion laughs)
- May 7, 2026CVE-2026-41650 NaturalIntelligence fast-xml-parser: XML injection
- Mar 24, 2026CVE-2026-33349 NaturalIntelligence fast-xml-parser: quantity not validated
- Mar 20, 2026CVE-2026-33036 NaturalIntelligence fast-xml-parser: XML entity expansion (billion laughs)
- Feb 20, 2026CVE-2026-25896 NaturalIntelligence fast-xml-parser: incorrect Regular Expression
- Feb 19, 2026CVE-2026-26278 NaturalIntelligence fast-xml-parser: XML entity expansion (billion laughs)
Questions about CVE-2026-27942
Is CVE-2026-27942 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.53% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of NaturalIntelligence fast-xml-parser are affected by CVE-2026-27942?
fast-xml-parser from 5.0.0 before 5.3.8 and fast-xml-parser from 4.0.0-beta.0 before 4.5.4, per the GitHub advisory GHSA-fj3w-jwp8-x2g3. The tables above give every range the sources list.
Which version fixes CVE-2026-27942?
5.3.8 and 4.5.4, per the GitHub advisory GHSA-fj3w-jwp8-x2g3. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-27942?
Low (2.7, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-27942?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.