---
title: "GHSA-8r6m-32jq-jx6q: fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits"
description: "High severity. fast-xml-parser: Repeated DOCTYPE declarations reset entity expansion limits. Affects fast-xml-parser; fixed in 5.10.1."
url: https://inlinr.com/advisories/GHSA-8r6m-32jq-jx6q
lang: en
---

[Packages](https://inlinr.com/packages) / [fast-xml-parser](https://inlinr.com/packages/fast-xml-parser) / [Security](https://inlinr.com/packages/fast-xml-parser/security)

High Vulnerability GHSA-8r6m-32jq-jx6q CVE-2026-73569 Published 21 Jul 2026

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

Your version 

Affected releases · [fast-xml-parser](https://inlinr.com/packages/fast-xml-parser)

- 5.x 5.9.3 – 5.10.0 Fixed in 5.10.1

On 5.x, the newest line:

```
npm install fast-xml-parser@5.10.1
```

Every release on a timeline

1. Not affected

1.0.0 – 5.9.2  
187 releases
2. Affected

5.9.3 – 5.10.0  
2 releases
3. Fixed

5.10.1 – 5.12.1  
6 releases, latest

195 stable releases of fast-xml-parser, oldest to newest.

## What happens

Impact

`fast-xml-parser` processes multiple "DOCTYPE" declarations within a single XML document. Each declaration passes its entities to [@nodable/entities](https://inlinr.com/packages/@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

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:4.0/​AV:N/​AC:L/​AT:N/​PR:N/​UI:N/​VC:N/​VI:N/​VA:H/​SC:N/​SI:N/​SA:N

## References

- [Reference](https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-8r6m-32jq-jx6q "https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-8r6m-32jq-jx6q")  
github.com/NaturalIntelligence/fast-xml-parser/…
- [Fix commit](https://github.com/NaturalIntelligence/fast-xml-parser/commit/4e546e03987662de5495d050b5fba26bea65383f "https://github.com/NaturalIntelligence/fast-xml-parser/commit/4e546e03987662de5495d050b5fba26bea65383f")  
4e546e0
- [Package](https://github.com/NaturalIntelligence/fast-xml-parser "https://github.com/NaturalIntelligence/fast-xml-parser")  
github.com/NaturalIntelligence/fast-xml-parser
- [Reference](https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.10.1 "https://github.com/NaturalIntelligence/fast-xml-parser/releases/tag/v5.10.1")  
github.com/NaturalIntelligence/fast-xml-parser/…

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
