CVE Catalog

CVE-2026-61845

HighCVSS 8.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.39%

33th percentile - higher than 33% of all known CVEs

Summary

In Crass (a Ruby CSS parser compliant with CSS Syntax Level 3) before 1.0.7, scientific-notation number values are converted with unbounded exponentiation before clamping to Float::MAX. Applications parsing attacker-controlled CSS can be forced to spend disproportionate CPU and memory on a tiny input, potentially causing a crash.

Risk Assessment

An attacker can supply crafted CSS that exhausts process resources and causes denial of service or application crash. The risk affects applications that parse untrusted stylesheets.

Recommendation

Upgrade the Crass library to version 1.0.7 or later. Also consider limiting the size and complexity of processed CSS.

Other vulnerabilities in Crass

See all
Original NVD description (English source)

Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, Crass converts `CSS scientific notation` number values with unbounded exponentiation before clamping the result to `Float::MAX`. Applications that use Crass to parse attacker-controlled CSS strings can be forced to spend disproportionate CPU and memory parsing a tiny input, potentially resulting in a crash. This issue is fixed in version 1.0.7.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS