{"id":"CVE-2026-61846","aliases":["CVE-2026-61846","GHSA-6jxj-px6v-747w"],"related":[],"kind":"vulnerability","state":"published","title":"Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"}],"published":"2026-10-29T16:35:16.000Z","modified":"2026-11-05T03:17:29.340Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-400","CWE-674"],"affected":[{"ranges":[{"version":"< 1.0.7","status":"affected"}],"vendor":"rgrove","product":"crass","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.7"}],"ecosystem":"RubyGems","package":"crass","purl":"pkg:gem/crass","source":"ghsa"}],"references":[{"url":"https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rgrove/crass/releases/tag/v1.0.7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rgrove/crass","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-05T02:28:35.312Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61846","url":"https://www.cve.org/CVERecord?id=CVE-2026-61846","licence":"CVE Terms of Use","modified":"2026-11-05T02:28:46.025Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6jxj-px6v-747w","url":"https://github.com/advisories/GHSA-6jxj-px6v-747w","licence":"CC-BY-4.0","modified":"2026-10-29T16:45:05.394Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61846","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61846","licence":"Public domain","modified":"2026-11-05T03:17:29.340Z"}],"updatedAt":"2026-11-25T22:59:48.000Z","epss":{"score":0.00454,"percentile":0.41109,"date":"2026-12-01T12:00:22.000Z"}}