Performance Degradation Vulnerability in js-yaml by Nodeca
CVE-2026-59868
5.3MEDIUM
What is CVE-2026-59868?
The js-yaml library, a widely-used JavaScript YAML parser, is susceptible to a performance degradation issue when merge keys are utilized. In versions 5.0.0 to 5.2.0, complicated document structures that leverage merge keys can lead to increased CPU consumption. This vulnerability manifests particularly in scenarios where mappings recursively merge previous ones, resulting in potentially significant delays during document parsing. The issue has been effectively resolved in version 5.2.0.
Affected Version(s)
js-yaml >= 5.0.0, < 5.2.0
