{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.2.0"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "75148bc4f5eb69b3d338e1c355d8bb2dba5bdf34"
            },
            {
              "fixed": "c28ed5ec1aa66a37b8202e17d0caa122922a1b00"
            },
            {
              "fixed": "3105455b81dee69e0fd36e09ac0b2ccfdb54adc1"
            }
          ],
          "repo": "https://github.com/nodeca/js-yaml",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g796-fgmg-93mv"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-59868",
  "modified": "2026-07-12T03:54:49.091664786Z",
  "published": "2026-07-08T15:18:19.422Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/nodeca/js-yaml/releases/tag/5.2.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59868.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nodeca/js-yaml/security/advisories/GHSA-g796-fgmg-93mv"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59868"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "js-yaml: YAML merge-key chains can force quadratic CPU consumption"
}