VYPR
High severity7.5OSV Advisory· Published Jul 8, 2026· Updated Oct 6, 2026

CVE-2026-59870

CVE-2026-59870

Description

js-yaml is a JavaScript YAML parser and dumper. Prior to 3.15.1, 4.3.1, and 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear duplicate-key scan on every insertion, causing O(n^2) CPU consumption when yaml.load() parses a crafted ordered-map document. In v3 and v4, !!omap is active and exploitable by default. v5 doesn't use !!omap by default, and the chances of activating it are very low.This issue is fixed in 3.15.1, 4.3.1, and 5.2.1.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
js-yamlnpm
>= 5.0.0, < 5.2.15.2.1

Affected products

5
  • Nodeca/Js YAMLOSV3 versions
    5.2.0, 5.1.0, 5.0.0+ 2 more
    • (no CPE)range: 5.2.0, 5.1.0, 5.0.0
    • cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:*range: >=5.0.0,<5.2.1
    • (no CPE)range: <3.15.1, <4.3.1, <5.2.1
  • osv-coords2 versions
    < 44.3.3-r0+ 1 more
    • (no CPE)range: < 44.3.3-r0
    • (no CPE)range: < 44.3.3-r0

Patches

Vulnerability mechanics

References

9

News mentions

1