Vulnerability GHSA-fj3w-jwp8-x2g3

Low Risk
LOW RISK
CVSS Score: 3.0
Score Range: < 4.0
Low severity vulnerabilities (CVSS < 4.0). Hygiene issues that can accumulate but pose lower immediate risk.
8 months ago
February 26, 2026 at 10:33 PM UTC
fast-xml-parser has stack overflow in XMLBuilder with preserveOrder
>=5.0.0 <5.3.8, >=4.0.0-beta.0 <4.5.4
>=5.0.0 <5.3.8, >=4.0.0-beta.0 <4.5.4

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?

Impacted packages

Timeline

Published
8 months ago
February 26, 2026 at 10:33 PM UTC
Fixed (5.3.8)
8 months ago
February 25, 2026 at 05:06 AM UTC
Fixed (4.5.4)
8 months ago
February 26, 2026 at 05:12 AM UTC
Last Modified
2 months ago
September 10, 2026 at 03:50 AM UTC