CVE-2026-33036: fast-xml-parser Numeric Entity Expansion Bypass Vulnerability

fast-xml-parser Updated 17 Mar 2026

Summary

17/03/2026
Yes i
High
7.5

CVE-2026-33036: The fix for CVE-2026-26278 added entity expansion limits (maxTotalExpansions, maxExpandedLength, maxEntityCount, maxEntitySize) to prevent XML entity expansion Denial of Service. Affects fast-xml-parser versions >= 4.0.0-beta.3, < 5.5.6. Fixed in 5.5.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

fast-xml-parser is a widely used XML parser for JavaScript that allows developers to easily convert XML data into JavaScript objects. It is known for its performance and flexibility, offering features such as entity processing and customizable parsing options. However, it has a vulnerability that allows attackers to bypass entity expansion limits, leading to potential Denial of Service (DoS) attacks.

Vulnerability Detail

The vulnerability arises from an incomplete fix for CVE-2026-26278, where the entity expansion limits are only enforced for DOCTYPE-defined entities. Numeric character references and standard XML entities are processed through a separate code path that does not enforce these limits. An attacker can exploit this by using a large number of numeric entity references, causing excessive memory allocation and CPU consumption, potentially leading to application crashes.

How To Fix

Latest published version: 5.11.2 as of 23 Oct 2026

npm install fast-xml-parser@5.11.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

5.5.6

This is the first release that contains the fix.

npm install fast-xml-parser@5.5.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable HTML entity processing by setting the 'htmlEntities' option to false in the XMLParser configuration. Here is an example of how to implement this:

const { XMLParser } = require('fast-xml-parser');
const parser = new XMLParser({
  processEntities: {
    enabled: true,
htmlEntities: false
  }
});

Conclusion

The fast-xml-parser package has a significant vulnerability that allows numeric entity expansion to bypass limits, leading to potential Denial of Service. It is crucial to update to the patched version or implement workarounds to mitigate the risk.

See every vulnerability recorded for fast-xml-parser →

Share this vulnerability

FAQ

CVE-2026-33036 is a vulnerability in the fast-xml-parser package that allows numeric entity expansion to bypass configured limits, potentially leading to Denial of Service.

An attacker can exploit this vulnerability by providing XML input with a large number of numeric entity references, causing excessive memory and CPU usage.

The potential impacts include excessive memory allocation, high CPU consumption, and possible application crashes due to out-of-memory errors.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for fast-xml-parser.

How To Fix

Latest published version: 5.11.2 as of 23 Oct 2026

npm install fast-xml-parser@5.11.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

5.5.6

This is the first release that contains the fix.

npm install fast-xml-parser@5.5.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback