PyPI
CVE-2026-142207
PyYAML through 6.0.4 CPU Denial of Service via Sexagesimal Integer Construction
- Severity
- Medium 6.9
- Published
- 2 Dec 2026
- Last changed
- 2 Dec 2026
- Added to UpHeron
- 2 Dec 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
PyYAML through 6.0.4 contains a denial of service vulnerability in SafeConstructor.construct_yaml_int() that allows remote attackers to exhaust CPU by supplying unbounded base-60 integer scalars. Attackers can submit a YAML document with a scalar containing many colon-separated groups to safe_load, SafeLoader, CSafeLoader or FullLoader, causing quadratic-time construction that blocks the parsing thread.
Affected software
| Software | Affected versions |
|---|---|
pyyamlPyPI · osv:PyPI:pyyaml |
|
About pyyaml
- Weekly downloads (PyPI)
- 320,068,728PyPI Stats, 2 Dec 2026
This is the only vulnerability in pyyaml in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-142207