{"id":"GHSA-6jxj-px6v-747w","summary":"Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage","details":"### Impact\n\nCrass 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.\n\n### Patches\n\nThis is fixed in Crass 1.0.7, which adds a configurable depth limit with a conservative default.\n\n### Workarounds\n\nAdd `SystemStackError` handling around Crass calls in your application. Buy more RAM.","aliases":["CVE-2026-61846"],"modified":"2026-10-29T16:45:05.394588176Z","published":"2026-10-29T16:35:16Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-10-29T16:35:16Z","nvd_published_at":null,"cwe_ids":["CWE-400"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w"},{"type":"WEB","url":"https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99"},{"type":"PACKAGE","url":"https://github.com/rgrove/crass"},{"type":"WEB","url":"https://github.com/rgrove/crass/releases/tag/v1.0.7"}],"affected":[{"package":{"name":"crass","ecosystem":"RubyGems","purl":"pkg:gem/crass"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.7"}]}],"versions":["0.0.1","0.0.2","0.1.0","0.2.0","0.2.1","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6jxj-px6v-747w/GHSA-6jxj-px6v-747w.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L"}]}