Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 61%

CVE-2026-27942: CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') in NaturalIntelligence fast-xml-parser

0
Low
VulnerabilityCVE-2026-27942cvecve-2026-27942cwe-120
Published: 02/26/2026 (02/26/2026, 01:22:11 UTC)
Source: CVE Database V5
Vendor/Project: NaturalIntelligence
Product: fast-xml-parser

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.

CVSS v4.0

Score 2.7low

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

fast-xml-parser
pkg:npm/fast-xml-parser
Affected versions
<5.3.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/24/2026, 15:07:51 UTC

Technical Analysis

CVE-2026-27942 is a classic buffer overflow vulnerability (CWE-120) in the fast-xml-parser library by NaturalIntelligence. The vulnerability triggers a stack overflow crash when the XML builder is used with the preserveOrder:true option in versions before 5.3.8. This occurs because the application copies input data without properly checking its size. The issue is fixed in version 5.3.8.

Potential Impact

The vulnerability can cause the application to crash due to stack overflow when processing XML with preserveOrder:true, potentially leading to denial of service. There is no indication of code execution or data corruption beyond the crash. The CVSS score is low (2.7), reflecting limited impact and no known exploitation in the wild.

Mitigation Recommendations

Upgrade to fast-xml-parser version 5.3.8 or later, which contains the official fix for this vulnerability. As a temporary workaround, avoid using the XML builder with preserveOrder:true or validate input data before passing it to the builder to prevent triggering the overflow.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-25T03:11:36.689Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 699fabd8b7ef31ef0b7dea09

Added to database: 02/26/2026, 02:11:36 UTC

Last enriched: 06/24/2026, 15:07:51 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 346

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses