CVE-2026-61845: Crass : Large numeric exponents cause CPU and memory denial of service
Impact Crass converts CSS scientific notation number values with unbounded exponentiation before it clamps 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, possibly resulting in a crash. Patches This is fixed in Crass 1.0.7.
Published Oct 20, 2026
Affected packages
crass
- Ecosystem
- RubyGems
- Affected
- < 1.0.7
- Fixed in
- 1.0.7
- Check
bundle info crass
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Crass converts CSS scientific notation number values with unbounded exponentiation before it clamps 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, possibly resulting in a crash.
Patches
This is fixed in Crass 1.0.7.
Related
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml
Credited to hourianto, rgrove.
References
- https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv
- https://github.com/rgrove/crass/releases/tag/v1.0.7
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml
- https://rubygems.org/gems/crass/versions/1.0.7
- https://github.com/advisories/GHSA-6wmf-3r64-vcwv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-61846
Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage
medium6.3Oct 29, 2026CVE-2026-61847
Crass: A large number of adjacent CSS comments can trigger a SystemStackError
medium6.3Oct 29, 2026CVE-2026-61848
Crass: Non-ASCII characters cause superlinear CPU consumption
medium6.3Oct 29, 2026CVE-2026-116695
Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass
medium5.3Oct 28, 2026
