GHSA-fj3w-jwp8-x2g3

Suggest an improvement
Source
https://github.com/advisories/GHSA-fj3w-jwp8-x2g3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-fj3w-jwp8-x2g3/GHSA-fj3w-jwp8-x2g3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fj3w-jwp8-x2g3
Aliases
Downstream
CGA (68)
MINI (15)
Published
2026-02-26T22:33:10Z
Modified
2026-09-10T03:50:34Z
Severity
  • 2.7 (Low) CVSS_V4 - 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 Calculator
Summary
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
Details

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

Are there any links users can visit to find out more?

Database specific
{
    "cwe_ids":  [
        "CWE-120"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-02-26T22:33:10Z",
    "nvd_published_at":  "2026-02-26T02:16:22Z",
    "severity":  "LOW"
}
References

Affected packages

npm / fast-xml-parser

Package

Name
fast-xml-parser
View open source insights on deps.dev
Purl
pkg:npm/fast-xml-parser

Affected ranges

Type
SEMVER
Events
Introduced
5.0.0
Fixed
5.3.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-fj3w-jwp8-x2g3/GHSA-fj3w-jwp8-x2g3.json"

npm / fast-xml-parser

Package

Name
fast-xml-parser
View open source insights on deps.dev
Purl
pkg:npm/fast-xml-parser

Affected ranges

Type
SEMVER
Events
Introduced
4.0.0-beta.0
Fixed
4.5.4

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-fj3w-jwp8-x2g3/GHSA-fj3w-jwp8-x2g3.json"