Vulnerability library
Security checkFebruary 27, 2026

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

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

The XML parser can be forced to do an unlimited amount of entity expansion. With a very small XML input, it’s possible to make the parser spend seconds or even minutes processing a single request, effectively freezing the application.

Recommendation

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

  • Affected version(s): **>= 5.0.0, < 5.3.6 >= 4.1.3, < 4.5.4**
  • Patched version(s): **5.3.6 4.5.4**

References

Could your website be exposed too?

SmartScanner can check your website for fast-xml-parser affected by DoS through entity expansion in DOCTYPE (no expansion limit) and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 27, 2026