# CVE-2026-59870: js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T15:13:20.308Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-724g-mxrg-4qvm
- Weaknesses: CWE-407, CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

js-yaml is a JavaScript YAML parser and dumper. Prior to 3.15.1, 4.3.1, and 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear duplicate-key scan on every insertion, causing O(n^2) CPU consumption when yaml.load() parses a crafted ordered-map document. In v3 and v4, !!omap is active and exploitable by default. v5 doesn't use !!omap by default, and the chances of activating it are very low.This issue is fixed in 3.15.1, 4.3.1, and 5.2.1.

(As written by CVE List.)

## Affected

- nodeca js-yaml: >= 5.0.0, < 5.2.1; >= 3.0.0, < 3.15.1; >= 4.0.0, < 4.3.1; from 5.0.0 before 5.2.1
- js-yaml (npm): from 5.0.0 before 5.2.1

## Every score

- GitHub_M: 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`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: 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`

## References

- <https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm> (exploit, vendor-advisory, web)
- <https://github.com/nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d3ded>
- <https://github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefe> (patch, web)
- <https://github.com/nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983cd4a>
- <https://github.com/nodeca/js-yaml/releases/tag/3.15.1>
- <https://github.com/nodeca/js-yaml/releases/tag/4.3.1>
- <https://github.com/nodeca/js-yaml/releases/tag/5.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59870> (advisory)
- <https://github.com/nodeca/js-yaml> (package)

## Sources

- CVE List: [CVE-2026-59870](https://www.cve.org/CVERecord?id=CVE-2026-59870), CVE Terms of Use, modified 2026-10-06
- GitHub Advisory Database: [GHSA-724g-mxrg-4qvm](https://github.com/advisories/GHSA-724g-mxrg-4qvm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59870](https://nvd.nist.gov/vuln/detail/CVE-2026-59870), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-59870 · Whole record: https://cve.day/CVE-2026-59870.json · Rebuilt by cve.day 2026-11-25T22:59:27.391Z
