# CVE-2026-73643: js-yaml: Exponential parsing time in the flow collections leads to denial of service

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T16:47:36.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-pm4m-ph32-ghv5
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 until 5.2.2, parsing a small YAML document can take exponential time when an application calls load() or loadAll() on untrusted input. In src/parser/parser.ts, readFlowCollection uses restoreState and calls parseNode a second time when a flow-sequence entry is recognized as a key: value pair. If the key is a nested flow sequence of the same shape, every level is parsed twice, causing O(2^n) work and allowing an input under 200 bytes to keep one CPU busy for minutes, block the Node.js event loop, and stall the process. No anchors, aliases, merges, tags, or nondefault options are required. This issue is fixed in version 5.2.2.

(As written by CVE List.)

## Affected

- nodeca js-yaml: >= 5.0.0, < 5.2.2
- js-yaml (npm): from 5.0.0 before 5.2.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nodeca/js-yaml/security/advisories/GHSA-pm4m-ph32-ghv5> (exploit, web)
- <https://github.com/nodeca/js-yaml/commit/3e5240f9cbe645ce5afb58524954a13c8539c853> (web)
- <https://github.com/nodeca/js-yaml> (package)
- <https://github.com/nodeca/js-yaml/releases/tag/5.2.2> (web)

## Sources

- CVE List: [CVE-2026-73643](https://www.cve.org/CVERecord?id=CVE-2026-73643), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-pm4m-ph32-ghv5](https://github.com/advisories/GHSA-pm4m-ph32-ghv5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-73643](https://nvd.nist.gov/vuln/detail/CVE-2026-73643), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73643 · Whole record: https://cve.day/CVE-2026-73643.json · Rebuilt by cve.day 2026-11-25T22:59:32.818Z
