LiveActive security incident?Get immediate response
CVE Record

CVE-2026-27942: fast-xml-parser has stack overflow in XMLBuilder with preserveOrder

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.

LowCVSS 2.7Not KEV-listedUpdated
Glexia's TakeAutomated analysislow

Security readout for executives and security teams

Plain-English summary

This is a low-severity denial-of-service issue in fast-xml-parser. Affected versions can crash with a stack overflow when XMLBuilder is used with preserveOrder:true. Business urgency is limited unless an externally reachable workflow builds XML from untrusted or poorly bounded input.

Executive priority

Handle in normal dependency maintenance unless the vulnerable builder path is externally reachable. Escalate only for services where malformed input could repeatedly crash production processes.

Technical view

fast-xml-parser before 5.3.8 can stack overflow in XMLBuilder when preserveOrder:true is enabled. The published CVSS 4.0 score is 2.7 with low availability impact and no stated confidentiality or integrity impact. Version 5.3.8 contains the fix.

Likely exposure

Exposure is most likely in Node.js applications using fast-xml-parser below 5.3.8, specifically XMLBuilder with preserveOrder:true. Risk increases where builder input is influenced by users, APIs, queues, or partner integrations.

Exploitation context

The bundle does not show CISA KEV listing or active exploitation evidence. The issue is a crash condition, not data theft or code execution based on the provided sources.

Researcher notes

The affected surface is XML building, not general XML parsing. Evidence in the bundle names a fixed version and workarounds, but does not provide proof of exploitation in the wild.

Mitigation direction

  • Upgrade fast-xml-parser to version 5.3.8 or later.
  • If upgrade is delayed, use XMLBuilder with preserveOrder:false.
  • Check or constrain input data before passing it to XMLBuilder.
  • Prioritize internet-facing or partner-facing XML generation paths.

Validation and detection

  • Inventory applications depending on fast-xml-parser below 5.3.8.
  • Review code for XMLBuilder configured with preserveOrder:true.
  • Identify whether builder input can come from untrusted sources.
  • Confirm deployed packages resolve to version 5.3.8 or later.
  • Run regression tests for XML output after changing preserveOrder settings.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-120: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-27942 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Low
CVSS
2.7 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
1ADP providers
4Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
2.7CVSS 4.0LowCVSS: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:UGitHub_M

Vulnerability scoring details

Base CVSS 4.0 score

2.7Low
CVSS 4.0 vector shape for CVE-2026-27942Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
NaturalIntelligencefast-xml-parser< 5.3.8Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-120 · source CWE mapping

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.