Vulnerability library
Security checkApril 08, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmfast-xml-parser

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The DocTypeReader in fast-xml-parser uses JavaScript truthy checks to evaluate maxEntityCount and maxEntitySize configuration limits.

Recommendation

Update the fast-xml-parser package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 5.0.0, < 5.5.7 >= 4.0.0-beta.3, < 4.5.5**
  • Patched version(s): **5.5.7 4.5.5**

References

Could your website be exposed too?

SmartScanner can check your website for Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parser and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated April 08, 2026