fast-xml-parser
5.12.1 · 13 Nov 2026MIT118.5M / weekRepositoryHomepagenpmAtom feed
Upgrading fast-xml-parser From 3.16.0 to 5.12.1
119 releases in betweennotes for 26
Reading releases, release notes and advisories…
Counted from 26 of 119 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 3 advisories affecting 3.16.0
- fast-xml-parser: Quadratic CPU consumption scanning unterminated stop-node tagslow · GHSA-474x-hrwr-fgx4
- fast-xml-parser XMLBuilder: XML Comment and CDATA Injection via Unescaped Delimitersmoderate · GHSA-gh4j-gqv2-49f6
- fast-xml-parser vulnerable to Prototype Pollution through tag or attribute namemoderate · GHSA-x3cc-x39p-42qx
Release by release
- New
Skip quoted attribute values in one step (long SVG path data 4-5x faster)
- Fixed
Correct demo parser and builder options
- New
- 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
41 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
16 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.