CVE-2026-59870

Source
https://cve.org/CVERecord?id=CVE-2026-59870
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59870.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-59870
Aliases
  • GHSA-724g-mxrg-4qvm
Downstream
Published
2026-07-08T15:13:20.308Z
Modified
2026-07-12T04:03:13.016099833Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing
Details

js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before 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. This issue is fixed in version 5.2.1.

Database specific
{
    "cwe_ids": [
        "CWE-407"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59870.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/nodeca/js-yaml

Affected ranges

Type
GIT
Repo
https://github.com/nodeca/js-yaml
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "5.0.0"
        },
        {
            "fixed": "5.2.1"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:*"
}

Affected versions

5.*
5.0.0
5.1.0
5.2.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59870.json"