cve.bz

CVE-2026-27942 naturalintelligence fast-xml-parser: Classic Buffer Overflow

2.7 lowEPSS 0.5%Fix available

Low (2.7) in naturalintelligence fast-xml-parser. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in fast-xml-parser 4.5.4, 5.3.8.

On this page
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.

Severity

CVSS 4.0

2.7 low
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-02-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-27942 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-27942?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-27942?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-27942 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
naturalintelligence:fast-xml-parserbefore 4.5.4
naturalintelligence:fast-xml-parserfrom 5.0.0 before 5.3.8

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fj3w-jwp8-x2g3npmfast-xml-parser>=5.0.0 <5.3.85.3.8
GHSA-fj3w-jwp8-x2g3npmfast-xml-parser>=4.0.0-beta.0 <4.5.44.5.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14node-webfontno fix listedDEBIAN-CVE-2026-27942
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morenode-webfontno fix listedUBUNTU-CVE-2026-27942

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The flaw affects the XML builder component of the fast-xml-parser library and is triggered only when the preserveOrder option is explicitly enabled. In Red Hat–shipped configurations, this option is not enabled by default, and the vulnerable code path is therefore not exercised under typical deployments.

The underlying issue results in uncontrolled recursion leading to a stack overflow condition, which causes the application to terminate unexpectedly. While this can be triggered via crafted input, the impact is limited strictly to denial of service (DoS) and does not provide a mechanism for arbitrary code execution, privilege escalation, or data disclosure.

Furthermore, exploitation requires that the affected application processes attacker-controlled XML input through the XML builder functionality with the specific vulnerable configuration enabled. This significantly reduces the attack surface and introduces environmental constraints not considered in the generalized NVD scoring.

Given the absence of confidentiality and integrity impact, the requirement for non-default configuration, and the limitation of the impact to process termination, Red Hat considers the practical risk to be lower than the NVD assessment. As such, this issue is classified as Moderate severity.

Red Hat's mitigation

To mitigate this vulnerability, configure applications using the `fast-xml-parser` XML builder to set the `preserveOrder` option to `false`. Alternatively, ensure that all XML input data is thoroughly validated before being passed to the builder to prevent the processing of malicious or malformed content.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Security 4.8advanced-cluster-security/rhacs-main-rhel8:1775594119Fixed 2026-04-08RHSA-2026:7110
Red Hat Advanced Cluster Security 4.9advanced-cluster-security/rhacs-main-rhel8:1775594284Fixed 2026-04-08RHSA-2026:7128
Red Hat Developer Hub 1.8rhdh/rhdh-hub-rhel9:1774545605Fixed 2026-03-30RHSA-2026:6174
Red Hat Developer Hub 1.9rhdh/rhdh-hub-rhel9:1775140647Fixed 2026-04-07RHSA-2026:6802
Red Hat Openshift Data Foundation 4.18odf4/cephcsi-rhel9:1783676191Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/cephcsi-rhel9-operator:1783929816Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/mcg-core-rhel9:1784094353Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/mcg-rhel9-operator:1784093953Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/ocs-client-console-rhel9:1784094943Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/ocs-client-rhel9-operator:1783676585Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/ocs-metrics-exporter-rhel9:1783676649Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/ocs-rhel9-operator:1783676675Fixed 2026-07-20RHSA-2026:41941
Red Hat Openshift Data Foundation 4.18odf4/odf-cli-rhel9:1784094299Fixed 2026-07-20RHSA-2026:41941
Migration Toolkit for Applications 8mta/mta-ui-rhel9Affected
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel8Affected
Red Hat OpenShift GitOpsopenshift-gitops-1/argocd-rhel9Affected
Red Hat OpenShift Virtualization 4container-native-virtualization/kubevirt-console-pluginNot affected
Red Hat OpenShift Virtualization 4container-native-virtualization/kubevirt-console-plugin-rhel9Not affected
Red Hat Satellite 6satellite/iop-vulnerability-frontend-rhel9Not affected
Self-service automation portal 2ansible-automation-platform/automation-portalAffected
75 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-27942.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON