fast-xml-parser
5.12.1 · 13 Nov 2026MIT118.5M / weekRepositoryHomepagenpmAtom feed
Upgrading fast-xml-parser From 4.0.10 to 5.12.0
94 releases in betweennotes for 24
Reading releases, release notes and advisories…
Counted from 24 of 94 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking5.7.1
- Breaking5.6.0
Security
Fixes 6 advisories affecting 4.0.10
- fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tagslow · GHSA-474x-hrwr-fgx4
- fast-xml-parser affected by numeric entity expansion bypassing all entity expansion limits (incomplete fix for CVE-2026-26278)high · GHSA-8gc5-j5rx-235r
- fast-xml-parser has stack overflow in XMLBuilder with preserveOrderlow · GHSA-fj3w-jwp8-x2g3
- fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimitersmoderate · GHSA-gh4j-gqv2-49f6
- Entity Expansion Limits Bypassed When Set to Zero Due to JavaScript Falsy Evaluation in fast-xml-parsermoderate · GHSA-jp2q-39xq-3w4g
- fast-xml-parser vulnerable to Prototype Pollution through tag or attribute namemoderate · GHSA-x3cc-x39p-42qx
Release by release
- Fixed
Add endIndex to the CommonJS XMLMetaData declaration
- Fixed
Preserve original metadata offsets for CRLF input
- Fixed
README.md: Fix documentation links
- Fixed
- Fixed
Decode Uint8Array XML input as UTF-8
- Fixed
Type EntityDecoderOptions.setXmlVersion's version as a number
- Fixed
5.11.1nothing new or fixed in the note
- New
Add support for endIndex in node metadata (5.x edition)
- Fixed
Don't crash on a closing tag with no matching opening tag
- New
5.8.0 – 5.10.17 releases, nothing new or fixed; 3 without a note
- Fixed
alwaysCreateTextNode should create text node when attributes are present for self closing node
- Fixed
Fix stop node expression when ns prefix is removed (found by iruizsalinas)
- Fixed
- New
Allow numerical external entity for backward compatibility
- Fixed
Fix #705: attributesGroupName working with preserveOrder
- Fixed
Fix #817: stackoverflow when tag expression is very long
- New
- Breaking
breaking changes
- Breaking
22 other lines we could not sort, mostly version bumps
- 5.9.3
Harden GitHub Actions workflows
- 5.9.3
GitHub Actions workflow fixes
- 5.9.0
Validate unsafe HTML or XML data in doctype entities unsing 'is-unsafe' library. User can override rules by overriding EntityDecoder.
- 5.8.0
Integrate xml-naming to validate DOCTYPE entity name and notation name (using qname because of backward compatibility)
- 5.7.3
Update XML Builder to 1.1.7
- 5.7.3
Mark addEntity deprecated
- 5.7.1
Use
@nodable/entitiesv2.1.0 - 5.7.1
Update 'fast-xml-builder' to sanitize malicious CDATA and comment's content
- 5.6.0
No API change
- 5.6.0
No change in performance for basic usage
14 internal lines (docs, tests, tooling) left out.
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.