Vulnerability library
Security checkMarch 09, 2026

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

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” allows special characters in entity names, which are not escaped or sanitized. Since the entity name is used for creating a regex for searching and replacing entities in the XML body, an attacker can abuse it for DoS attacks.

Recommendation

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

  • Affected version(s): >= 4.1.3, < 4.2.4
  • Patched version(s): 4.2.4

References

Could your website be exposed too?

SmartScanner can check your website for fast-xml-parser vulnerable to Regex Injection via Doctype Entities and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 09, 2026