Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 1.0.7
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
Crass, a Ruby library for parsing CSS, is affected by this vulnerability. Attacker-supplied CSS containing deeply nested blocks or functions can crash parsing with a stack overflow error or consume excessive memory.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, Crass recursively parses `CSS simple blocks and functions` without a depth guard. An attacker-controlled CSS value containing deeply nested blocks or functions can recurse until Ruby raises `SystemStackError`: stack level too deep, or cause excessive memory usage. Version 1.0.7 adds a configurable depth limit with a conservative default. This issue is fixed in version 1.0.7.
Timeline
- CVE published
- First seen by cve.now
Affected versions
- rgrove crass
fixed in 1.0.7
- crassRubyGems
fixed in 1.0.7