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.
{
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2026-10-29T16:35:16Z",
"nvd_published_at": null,
"severity": "MODERATE"
}