CVE-2026-27942
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
Description
Impact
Application crashes with stack overflow when user use XML builder with prserveOrder:true for following or similar input
[{
'foo': [
{ 'bar': [{ '@_V': 'baz' }] }
]
}]
Cause: arrToStr was not validating if the input is an array or a string and treating all non-array values as text content.
What kind of vulnerability is it? Who is impacted?
Patches
Yes in 5.3.8
Workarounds
Use XML builder with preserveOrder:false or check the input data before passing to builder.
References
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » fast-xml-parservia npm fast-xml-parser | >= 4.0.0-beta.0, < 4.5.4>= 5.0.0, < 5.3.8 | 4.5.4, 5.3.8 |
| org.webjars.npm » fast-xml-parservia npm fast-xml-parser | >= 4.0.0-beta.0, < 4.5.4>= 5.0.0, < 5.3.8 | 4.5.4, 5.3.8 |
Blast radius
37% of the dependent artifacts (15) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 7 |
| 2 hops | 431 |
| 3 hops | 413 |
| 4 hops | 267 |
| 5 hops | 51 |
Most used dependents
- org.mvnpm.at.aws-sdk » core35 usages
- org.mvnpm.at.aws-sdk » credential-provider-node13 usages
- org.mvnpm.at.aws-sdk » middleware-user-agent11 usages
- org.mvnpm.at.aws-sdk » util-user-agent-node10 usages
- org.eclipse.dirigible » dirigible-components-group-ui9 usages
- org.eclipse.dirigible » dirigible-components-group-resources8 usages
- org.eclipse.dirigible » dirigible-components-group-ide7 usages
- org.mvnpm.at.aws-sdk » client-sts6 usages
- org.mvnpm » aws-amplify6 usages
- org.mvnpm.at.aws-sdk » client-sso-oidc5 usages
- org.mvnpm.at.aws-sdk » nested-clients5 usages
- org.eclipse.dirigible » dirigible-components-group-resources-core4 usages
- org.eclipse.dirigible » dirigible-components-resources-resources4 usages
- org.webjars.npm » bpmn-visualization4 usages
- org.eclipse.dirigible » dirigible-components-ui-perspective-processes3 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-27942 | nvd.nist.gov |
| Package | NaturalIntelligence/fast-xml-parser | github.com |
| Web | NaturalIntelligence/fast-xml-parser advisory GHSA-fj3w-jwp8-x2g3 | github.com |
| Web | NaturalIntelligence/fast-xml-parser pull request #791 | github.com |
| Web | NaturalIntelligence/fast-xml-parser commit c13a961 | github.com |
