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
Downstream
CLSA (1)
RHSA (8)
UBUNTU (1)
Published
2026-07-08T15:18:19Z
Modified
2026-10-27T02:36:05Z
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
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-407"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59868.json"
}
References

Affected packages

Git / github.com/nodeca/js-yaml

Affected ranges

Type
GIT
Repo
https://github.com/nodeca/js-yaml
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "cpe": "cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:*",
            "range": [
                {
                    "introduced": "5.0.0"
                },
                {
                    "fixed": "5.2.0"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "range": [
                {
                    "fixed": "3105455b81dee69e0fd36e09ac0b2ccfdb54adc1"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "5.2.0",
            "range": [
                {
                    "fixed": "c28ed5ec1aa66a37b8202e17d0caa122922a1b00"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

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"