js-yaml: YAML merge-key chains can force quadratic CPU consumption (nodeca js-yaml)
En bref
- Source
- NVD
- EPSS
- EPSS 0.64 % · centile 51 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Analyzed
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.
Faiblesses (CWE)
- CWE-407 — Complexité algorithmique inefficace
- CWE-770 — Allocation de ressources sans limite ni régulation
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| 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 | GitHub_M |
| 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 | NVD · security-advisories@github.com (Secondary) |
| 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 · nvd@nist.gov (Primary) |
Avis
- GHSA-g796-fgmg-93mv — js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yaml
Références européennes
- ENISA EUVD · EUVD-2026-42302
- GCVE · GCVE-0-2026-59868
Configurations affectées (CPE NVD)
cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:*≥ 5.0.0 < 5.2.0
Produits affectés
| Produit | Versions |
|---|---|
| nodeca · js-yaml | affected >= 5.0.0, < 5.2.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |