CVE-2026-59868
HIGH 7.5CVSS 3.1js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yaml
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400CWE-407CWE-770
- Also known as
- GHSA-g796-fgmg-93mv
- Sources
- NVDJSONOSV GHSA-g796-fgmg-93mvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.2.0 | 5.2.0 |
| OSV | npm | js-yaml | >= 5.0.0, < 5.2.0 | 5.2.0 |
References
- https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1 · Patch, WEB
- https://github.com/nodeca/js-yaml/releases/tag/5.2.0 · Release Notes, WEB
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-g796-fgmg-93mv · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59868 · ADVISORY
- https://github.com/nodeca/js-yaml · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Jul 2026)