Advisory

GHSA-8r6m-32jq-jx6q

Also known as: CVE-2026-73569

Summary

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

Details

Impact
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. An attacker can therefore insert additional DOCTYPE declarations to repeatedly reset maxTotalExpansions and maxExpandedLength during one parse operation.

This allows a crafted XML document to exceed the configured entity-expansion limits and can cause excessive CPU use, event-loop blocking, memory exhaustion, and process termination.

Workarounds

  • Manually check if multiple DOCTYPEs are not present in input contents
  • Update to v5.10.1
  • Keep processEntity flag off

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-07-21 22:06 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

fast-xml-parser

npm · All systems

Affected

  • introduced 5.9.3, fixed 5.10.1 (semver)

Fixed versions

5.10.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences