CVE-2026-59868

Source
https://cve.org/CVERecord?id=CVE-2026-59868
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59868.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-59868
Aliases
  • GHSA-g796-fgmg-93mv
Downstream
Published
2026-07-08T15:18:19.422Z
Modified
2026-07-12T03:55:36.991762575Z
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: YAML merge-key chains can force quadratic CPU consumption
Details

js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before 5.2.0, when merge keys are enabled, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where each mapping merges the previous one. This issue is fixed in version 5.2.0.

Database specific
{
    "cwe_ids": [
        "CWE-407"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59868.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.0"
        }
    ],
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ]
}

Affected versions

5.*
5.0.0
5.1.0

Database specific

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