{"id":"CVE-2026-61848","aliases":["CVE-2026-61848","GHSA-8vfg-2r28-hvhj"],"related":[],"kind":"vulnerability","state":"published","title":"Crass: Non-ASCII characters cause superlinear CPU consumption","summary":"Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, when Crass parses input containing `non-ASCII characters`, inefficiencies in tracking the positions of `multi-byte characters` result in superlinear parsing time. An attacker-controlled CSS input consisting of many `non-ASCII characters` can therefore cause excessive CPU consumption and potentially denial of service. 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, when Crass parses input containing `non-ASCII characters`, inefficiencies in tracking the positions of `multi-byte characters` result in superlinear parsing time. An attacker-controlled CSS input consisting of many `non-ASCII characters` can therefore cause excessive CPU consumption and potentially denial of service. This issue is fixed in version 1.0.7.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nWhen parsing an input containing non-ASCII characters, inefficiencies in how Crass tracks the positions of multi-byte characters result in superlinear parsing time. An attacker-controlled input consisting of many non-ASCII characters could cause excessive CPU consumption and potentially denial of service.\n\n### Patches\n\nThis is fixed in Crass 1.0.7.\n\n### Workarounds\n\nAvoid passing non-ASCII input to Crass. Or cultivate patience.","format":"markdown","source":"ghsa"}],"published":"2026-10-29T16:35:29.000Z","modified":"2026-11-06T18:18:15.657Z","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"],"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-8vfg-2r28-hvhj","tags":["web","x-refsource-confirm"],"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":"http://github.com/rgrove/crass/commit/da29664648bf80a97a6439e030a4814291c9afa5","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":"no","technicalImpact":"partial","date":"2026-11-06T17:28:10.376Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61848","url":"https://www.cve.org/CVERecord?id=CVE-2026-61848","licence":"CVE Terms of Use","modified":"2026-11-06T17:31:01.082Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8vfg-2r28-hvhj","url":"https://github.com/advisories/GHSA-8vfg-2r28-hvhj","licence":"CC-BY-4.0","modified":"2026-10-29T16:45:04.487Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61848","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61848","licence":"Public domain","modified":"2026-11-06T18:18:15.657Z"}],"updatedAt":"2026-11-25T22:59:48.000Z","epss":{"score":0.00454,"percentile":0.41108,"date":"2026-12-01T12:00:22.000Z"}}