CVE-2026-27942

fast-xml-parser has stack overflow in XMLBuilder with preserveOrder

Published Feb 26, 2026 CVSS 4.0 · 2.7 Low EPSS < 1% KEV · Not listed
Description
fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. Prior to version 5.3.8, the application crashes with stack overflow when user use XML builder with `preserveOrder:true`. Version 5.3.8 fixes the issue. As a workaround, use XML builder with `preserveOrder:false` or check the input data before passing to builder.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fj3w-jwp8-x2g3 fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:fast-xml-parser_project:fast-xml-parser:*:*:*:*:*:node.js:*:* cpe:2.3:a:naturalintelligence:fast-xml-parser:*:*:*:*:*:*:*:*
Vendors & Products Fast-xml-parser Project
Fast-xml-parser Project fast-xml-parser
Type Values Removed Values Added
First Time appeared Fast-xml-parser Project
Fast-xml-parser Project fast-xml-parser
CPEs cpe:2.3:a:fast-xml-parser_project:fast-xml-parser:*:*:*:*:*:node.js:*:*
Vendors & Products Fast-xml-parser Project
Fast-xml-parser Project fast-xml-parser
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
First Time appeared Naturalintelligence
Naturalintelligence fast-xml-parser
Vendors & Products Naturalintelligence
Naturalintelligence fast-xml-parser
Type Values Removed Values Added
Description fast-xml-parser allows users to validate XML, parse XML to JS object, or build XML from JS object without C/C++ based libraries and no callback. Prior to version 5.3.8, the application crashes with stack overflow when user use XML builder with `preserveOrder:true`. Version 5.3.8 fixes the issue. As a workaround, use XML builder with `preserveOrder:false` or check the input data before passing to builder.
Title fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
Weaknesses CWE-120
References
Metrics cvssV4_0

{'score': 2.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 23, 2026, 3:50 PM
Reserved
Feb 25, 2026, 3:11 AM
Status
Analyzed
Published
Feb 26, 2026, 2:16 AM
Modified
Jun 17, 2026, 10:27 AM
Severity
Moderate
Public date
Feb 26, 2026, 1:22 AM