Vulnerability library
Security checkAugust 13, 2026

fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits

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

High 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

fast-xml-parser processes multiple “DOCTYPE” declarations within a single XML document. Each declaration passes its entities to @nodable/entities through addInputEntities().

addInputEntities() resets the entity expansion counters every time it is called.

Recommendation

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

  • Affected version(s): >= 5.9.3, < 5.10.1
  • Patched version(s): 5.10.1

References

Could your website be exposed too?

SmartScanner can check your website for fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 13, 2026