AZL-117649: CVE-2026-142207 affecting package PyYAML 6.0.1-1
PyYAML through 6.0.4 contains a denial of service vulnerability in SafeConstructor.constructyamlint() 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 safeload, SafeLoader, CSafeLoader or FullLoader, causing quadratic-time construction that blocks the parsing thread.
Affected Software
Event History
Frequently Asked Questions
Which application paths are exposed to this denial of service?
Any application that parses attacker-controlled YAML using safe_load, SafeLoader, CSafeLoader, or FullLoader is exposed. The issue blocks the thread performing YAML parsing, so services that process uploaded, submitted, or remotely supplied YAML are the relevant attack surface.
What does an attacker need to send to trigger the problem?
The attacker needs to provide a YAML document containing a base-60 integer scalar with many colon-separated groups. No unsafe loader is required; the affected safe-loading APIs are included.
How can I determine whether my application may be affected?
Review code paths that accept YAML from remote or untrusted sources and identify use of safe_load, SafeLoader, CSafeLoader, or FullLoader. PyYAML through 6.0.4 is described as affected.