fast-xml-parser
5.12.1 · 13 Nov 2026MIT118.5M / weekRepositoryHomepagenpmAtom feed
Your version
5.12.1 is the newest release of 5.x.
In short
2 changed
Security
2 advisories affect 5.5.10; 5.12.0 fixes them
- Moderatefast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped DelimitersGHSA-gh4j-gqv2-49f6 · 22 Apr 2026Fixed in 5.7.0
- Lowfast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tagsGHSA-474x-hrwr-fgx4 · 10 Nov 2026Fixed in 5.12.0
Release note
Increase default entity explansion limit as many projects demand for that
maxEntitySize: 10000, maxExpansionDepth: 10000, maxTotalExpansions: Infinity, maxExpandedLength: 100000, maxEntityCount: 1000,
Performance improvement
reduce calls to toString
early return when entities are not present
prepare rawAttrsForMatcher only if user sets
jPath: false
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.