Home

Description

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 Reserved 2026-07-07 | Published 2026-07-08 | Updated 2026-07-09 | Assigner GitHub_M




MEDIUM: 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Problem types

CWE-407: Inefficient Algorithmic Complexity

Product status

>= 5.0.0, < 5.2.0
affected

References

github.com/...s-yaml/security/advisories/GHSA-g796-fgmg-93mv exploit

github.com/...s-yaml/security/advisories/GHSA-g796-fgmg-93mv

github.com/...ommit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1

github.com/nodeca/js-yaml/releases/tag/5.2.0

cve.org (CVE-2026-59868)

nvd.nist.gov (CVE-2026-59868)

Download JSON