RubyGems
CVE-2026-61846
Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage
- Severity
- Medium
- Published
- 29 Oct 2026
- Last changed
- 29 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.0.7
- Exploit chance
- 0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
- Also known as
- GHSA-6jxj-px6v-747w
- Sources
- OSV.dev and GitHub
Description
Crass recursively parses CSS simple blocks and functions without a depth guard. An attacker-controlled value containing many deeply nested blocks can recurse until Ruby raises SystemStackError: stack level too deep, or can cause excessive memory usage.
Workarounds
Add SystemStackError handling around Crass calls in your application. Buy more RAM.
Affected software
| Software | Affected versions |
|---|---|
crassRubyGems · osv:RubyGems:crass |
|
About crass
- Total downloads (RubyGems)
- 649,854,345RubyGems, 23 Nov 2026
Vulnerabilities in crass
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-61848Crass: Non-ASCII characters cause superlinear CPU consumptionMedium 29 Oct 2026
- CVE-2026-61847Crass: A large number of adjacent CSS comments can trigger a SystemStackErrorMedium 29 Oct 2026
- CVE-2026-116695Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypassMedium 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-61846
- GitHub Advisory Database https://github.com/advisories/GHSA-6jxj-px6v-747w