{"id":"CVE-2026-61846","state":"PUBLISHED","title":"Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage","description":"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.","publishedAt":"2026-10-30T18:43:25.373Z","updatedAt":"2026-10-30T18:43:25.373Z","severity":{"score":6.3,"label":"Medium","version":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["rgrove crass"],"affected":[{"vendor":"rgrove","product":"crass","versions":[{"version":"< 1.0.7","status":"affected"}]}],"references":["https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w","https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99","https://github.com/rgrove/crass/releases/tag/v1.0.7"],"weaknesses":["CWE-674"],"ingestedAt":"2026-10-30T18:54:06.496Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/61xxx/CVE-2026-61846.json","commit":"b345e92d739b367e3638a015ed08039f20b0227b","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-61846","state":"PUBLISHED","datePublished":"2026-10-30T18:43:25.373Z","dateUpdated":"2026-10-30T18:43:25.373Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-10T20:28:17.513Z"},"containers":{"cna":{"title":"Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"rgrove","product":"crass","versions":[{"version":"< 1.0.7","status":"affected"}]}],"references":[{"url":"https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w","name":"https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99","name":"https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99","tags":["x_refsource_MISC"]},{"url":"https://github.com/rgrove/crass/releases/tag/v1.0.7","name":"https://github.com/rgrove/crass/releases/tag/v1.0.7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"LOW","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"LOW","baseScore":6.3,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-674","lang":"en","description":"CWE-674: Uncontrolled Recursion","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T18:43:25.373Z"},"source":{"advisory":"GHSA-6jxj-px6v-747w","discovery":"UNKNOWN"}}}}}