Impact
An inefficient regular expression in the CSS scrubber of the html_sanitize_ex library allows an attacker to trigger quadratic backtracking by sending a long run of characters that match the property name pattern before the colon is found. The resulting CPU usage can exceed 2 seconds for an 80 KB style block, and multiple concurrent requests can saturate the BEAM scheduler, rendering the application unresponsive. The vulnerability does not grant any information disclosure, modification, or authentication bypass; its sole effect is to consume system resources.
Affected Systems
The vulnerability affects the rrrene html_sanitize_ex library in all releases from 0.3.1 up to but not including version 1.5.3. Anyone deploying these versions within a web application that sanitizes user supplied HTML is vulnerable.
Risk and Exploitability
With a CVSS score of 8.2 the risk is high. EPSS data is not available, and the issue is not listed in CISA's KEV catalog, however the lack of authorization checks and the ability to craft arbitrary HTTP requests mean an unauthenticated remote attacker can trivially exercise the denial-of-service effect. The attack path involves sending a crafted style block to the sanitizer; no additional system access is required.
OpenCVE Enrichment