PSF-2026-25: Potential DoS via quadratic complexity in unicodedata.normalize()
Published Jun 3, 2026
·Updated
unicodedata.normalize() can take excessive CPU time when processing specially crafted Unicode input containing long runs of combining characters with alternating Canonical Combining Class values. This affects all normalization forms.
Affected Software
1 affected component
Python Software Foundation Python
Event History
Jun 3, 2026
CVE Published
via OSV·02:29 PM
Data Sourced
via OSV·02:29 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
Does exploitation require authentication or user interaction?
The CVSS vector indicates network attackability with no privileges required and no user interaction required. Exploitation depends on supplying specially crafted Unicode input to code that performs normalization.
2
Which normalization modes are affected?
All Unicode normalization forms are affected.
3
What input should be treated as potentially abusive?
Inputs containing long runs of combining characters with alternating Canonical Combining Class values can trigger excessive CPU use during normalization.