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

- Priority: **Routine**
- Reason: Not severe (CVSS 2.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-26 · Modified: 2026-06-23
- Aliases: UBUNTU-CVE-2026-27942, DEBIAN-CVE-2026-27942, CGA-4544-gh72-59wp, CGA-559g-xx8x-rhwm, CGA-72wm-w7qh-x22r, CGA-7782-94mg-q5mq, CGA-8h3q-chf7-gg38, CGA-gx3m-7wqm-c487, CGA-hq33-hx3w-m757, CGA-hw9g-8mvx-jmfp, CGA-m2fc-2pf4-xw5f, CGA-m5ch-v5q6-7xqp, CGA-p56c-8r9v-gpx3, CGA-qw5r-grx9-gcpp, CGA-r7vm-pc56-6vjw, CGA-v4cq-j83c-cwv8, CGA-v6jg-fh7q-rm83, CGA-vqq3-6w57-cmwj, GHSA-fj3w-jwp8-x2g3, CGA-25h9-q2mp-gvr5, CGA-26gp-6834-wxf9, CGA-3gcw-28gf-rpc5, CGA-3rc5-5v6x-r8px, CGA-48qg-fvc5-2658, CGA-4hx4-95cr-9f82, CGA-4x5r-7mgm-9484, CGA-5g79-xmrr-2x4p, CGA-63m9-m3jj-crw3, CGA-6g75-h6m4-wxrm, CGA-6hw3-gv3h-gx25, CGA-6v7m-gpr4-33h9, CGA-7344-xpfm-m93h, CGA-7354-w9q8-gq2w, CGA-74pf-332g-6jv9, CGA-7c77-9gj7-9q42, CGA-7fc9-h738-3g6f, CGA-838m-cx22-q82m, CGA-c6vw-hgmm-9vxh, CGA-c7r7-65mf-r85m, CGA-cc28-v4q5-ccxg, CGA-f2vq-v7v6-g55g, CGA-f443-vx3w-hfrm, CGA-f8fw-vjjj-fm22, CGA-fhgj-hj69-hrpc, CGA-gg3r-42qr-mphv, CGA-h72v-hqwf-7q45, CGA-h823-wqqm-5j6h, CGA-hj2p-2qjp-x98g, CGA-j263-jq6g-62j3, CGA-m2v3-x337-3p5v, CGA-mm7x-7jr8-4395, CGA-mp5v-vxgp-4xjw, CGA-p787-jpq3-m3gp, CGA-p7f6-23c6-ff9w, CGA-pj6g-496v-4gmg, CGA-pjpj-24x9-pvm4, CGA-qc8w-3668-w98p, CGA-qcx4-8v3h-g2g3, CGA-qjj4-4f9x-fj42, CGA-qvmg-v4xw-xp75, CGA-r4hh-p5hh-g9pp, CGA-rmr3-j465-7rmm, CGA-rrmw-j4qx-xgg4, CGA-rv48-f6h5-3fcw, CGA-v2hh-7ch6-8mg8, CGA-v36g-4ppq-9r73, CGA-vc65-p967-fv8j, CGA-vrwv-w5mg-ff7m, CGA-wg5q-7mhr-7r65, CGA-wwr3-gv2c-ww47, CGA-x3rv-4v5f-5hpj
- Record: https://cvemate.com/vulnerability/CVE-2026-27942 · JSON: https://cvemate.com/vulnerability/CVE-2026-27942/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.535%, percentile 46.671%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 45)

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard dbgate (Chainguard): \< 7.1.2-r1
- chainguard dbgate-fips (Chainguard): \< 7.1.2-r0
- chainguard jitsucom-jitsu-console (Chainguard): \< 2.11.0-r16
- chainguard kibana-8.17 (Chainguard): \< 8.17.10-r11
- chainguard kibana-8.17-iamguarded (Chainguard): \< 8.17.10-r11
- chainguard kibana-8.18 (Chainguard): All versions (No fix recorded)
- chainguard kibana-8.18-bitnami (Chainguard): All versions (No fix recorded)
- chainguard kibana-8.18-iamguarded (Chainguard): All versions (No fix recorded)
- chainguard kibana-8.19 (Chainguard): \< 8.19.12-r3
- chainguard kibana-8.19-bitnami (Chainguard): \< 8.19.12-r3
- chainguard kibana-8.19-iamguarded (Chainguard): \< 8.19.12-r3
- chainguard kibana-9.0 (Chainguard): \< 9.0.8-r11
- chainguard kibana-9.0-iamguarded (Chainguard): \< 9.0.8-r11
- chainguard kibana-9.1 (Chainguard): \< 9.1.10-r6
- chainguard kibana-9.1-iamguarded (Chainguard): \< 9.1.10-r6
- chainguard kibana-9.2 (Chainguard): \< 9.2.6-r2
- chainguard kibana-9.2-iamguarded (Chainguard): \< 9.2.6-r2
- chainguard kibana-9.3 (Chainguard): \< 9.3.1-r1

## References

- <https://github.com/NaturalIntelligence/fast-xml-parser/security/advisories/GHSA-fj3w-jwp8-x2g3>
- <https://github.com/NaturalIntelligence/fast-xml-parser/pull/791>
- <https://github.com/NaturalIntelligence/fast-xml-parser/commit/c13a961910f14986295dd28484eee830fa1a0e8a>
- <https://ubuntu.com/security/CVE-2026-27942>
- <https://www.cve.org/CVERecord?id=CVE-2026-27942>
- <https://security-tracker.debian.org/tracker/CVE-2026-27942>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27942.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27942>
- <https://github.com/NaturalIntelligence/fast-xml-parser>

---

Data as of 2026-12-05T08:38:56.241Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
