Is fast-xml-parser 4.2 vulnerable?

npm · 8 releases from 4.2.0 to 4.2.7 · latest fast-xml-parser is 5.11.2 · checked 1 Nov 2026

Yes: 6 known advisories

Yes. fast-xml-parser 4.2.7, the last 4.2 release, is affected by 6 known security advisories (1 critical, 2 high, 2 medium, 1 low), including CVE-2026-25896, CVE-2026-33036, CVE-2026-26278. 2 more affect earlier 4.2.x releases. Upgrade to 5.7.0 or later to fix all of them.

Upgrade with:npm install fast-xml-parser@5.7.0

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting fast-xml-parser 4.2.7

  • MediumCVE-2026-41650GHSA-gh4j-gqv2-49f622 Apr 2026

    fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimiters

    Affected
    <5.7.0
    Fixed in
    5.7.0
  • MediumCVE-2026-33349GHSA-jp2q-39xq-3w4g19 Mar 2026

    Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser

    Affected
    >=4.0.0-beta.3 <4.5.5 · >=5.0.0 <5.5.7
    Fixed in
    4.5.5, 5.5.7
  • HighCVE-2026-33036GHSA-8gc5-j5rx-235r17 Mar 2026

    fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)

    Affected
    >=5.0.0 <5.5.6 · >=4.0.0-beta.3 <4.5.5
    Fixed in
    4.5.5, 5.5.6
  • LowCVE-2026-27942GHSA-fj3w-jwp8-x2g326 Feb 2026

    fast-xml-parser has stack overflow in XMLBuilder with preserveOrder

    Affected
    >=5.0.0 <5.3.8 · >=4.0.0-beta.0 <4.5.4
    Fixed in
    4.5.4, 5.3.8
  • CriticalCVE-2026-25896GHSA-m7jm-9gc2-mpf220 Feb 2026

    fast-xml-parser has an entity encoding bypass via regex injection in DOCTYPE entity names

    Affected
    >=5.0.0 <5.3.5 · >=4.1.3 <4.5.4
    Fixed in
    4.5.4, 5.3.5
  • HighCVE-2026-26278GHSA-jmr7-xgp7-cmfj17 Feb 2026

    fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit)

    Affected
    >=4.1.3 <4.5.4 · >=5.0.0 <5.3.6
    Fixed in
    4.5.4, 5.3.6

Fixed within 4.2.x, affecting earlier releases

  • LowGHSA-gpv5-7x3g-ghjv15 Jun 2023

    fast-xml-parser regex vulnerability patch could be improved from a safety perspective

    Affected
    >=4.2.4 <4.2.5
    Fixed in
    4.2.5
  • HighCVE-2023-34104GHSA-6w63-h3fj-q4vw6 Jun 2023

    fast-xml-parser vulnerable to Regex Injection via Doctype Entities

    Affected
    >=4.1.3 <4.2.4
    Fixed in
    4.2.4

Which of your client projects are still on fast-xml-parser 4.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact fast-xml-parser version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other fast-xml-parser versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.