| Package | Affected versions | Patched versions |
|---|---|---|
| crass | < 1.0.7 | 1.0.7 |
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.
This is fixed in Crass 1.0.7, which adds a configurable depth limit with a conservative default.
Add SystemStackError handling around Crass calls in your application. Buy more RAM.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free