Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rubygemscrass |
< 1.0.7→ 1.0.7 |
1.0.7 |
| rgrovecrass | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-61846 ruby-crass Fix available
- Ubuntu UBUNTU-CVE-2026-61846 ruby-crass No fixed version in this record
Original description The description as published by the source.
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.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- REDHAT Red Hat
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com
- web github.com