Description
The incremental HTML parser (html.parser.HTMLParser) allows for CPU denial-of-service through repeated unterminated markup declarations when processing uncontrolled data.
Problem types
Product status
Any version before 3.15.0
Credits
Edward-x (https://github.com/YLChen-007)
Serhiy Storchaka (https://github.com/serhiy-storchaka)
Gregory P. Smith (https://github.com/gpshead)
Seth Larson (https://github.com/sethmlarson)
References
www.openwall.com/lists/oss-security/2026/07/09/4
mail.python.org/.../thread/F6453LWKSHKCTWFLCOURWPLETNUIW2Z5/
github.com/python/cpython/pull/153031
github.com/python/cpython/issues/153030
github.com/...ommit/07efb08123ba9367a7107325adb9d5626dca1ca9
github.com/...ommit/7933f4bf7131aa4140750f9404f5de0aa2969ced
github.com/...ommit/bcf98ddbc40ec9b3ee87da0124a5660b19b7e606
github.com/...ommit/e9f92ac0b298292e7ff998e52cb8ccacfb27a0bd