Vulnerability

CVE-2026-59870

highCVSS 3.1 7.5Published 8 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

From the NVD's configuration data (CPE), vendor first.

  • Nodeca js-yaml

Weakness type

References

  • github.com /nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d…
  • github.com /nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060a…
  • github.com /nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983…
  • github.com /nodeca/js-yaml/releases/tag/3.15.1
  • github.com /nodeca/js-yaml/releases/tag/4.3.1
  • github.com /nodeca/js-yaml/releases/tag/5.2.1
  • github.com /nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning