{"id":"CVE-2026-116695","summary":"Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass","details":"Crass is a Ruby CSS parser that is compliant with the CSS Syntax Level 3 specification. Prior to 1.0.8, Crass incorrectly treats a closing parenthesis after an escaped backslash as escaped while consuming the remnants of a bad URL. Crass therefore keeps declarations, style rules, or at-rules inside a bad URL token even though a browser treats them as live CSS. A sanitizer that parses untrusted CSS with Crass and reserializes it without rejecting the bad URL can allow CSS used for UI redress, external resource loading, or CSS-based data exfiltration, but this issue does not enable script execution in modern browsers. This issue is fixed in version 1.0.8.","aliases":["GHSA-pq4g-8rxf-4g29"],"modified":"2026-10-30T02:33:27.738779277Z","published":"2026-10-27T20:10:34.010Z","database_specific":{"cwe_ids":["CWE-436"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116695.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/rgrove/crass/releases/tag/v1.0.8"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116695.json"},{"type":"ADVISORY","url":"https://github.com/rgrove/crass/security/advisories/GHSA-pq4g-8rxf-4g29"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116695"},{"type":"FIX","url":"https://github.com/rgrove/crass/commit/689fc45c632fdf3803b2f4e844ffc9cca3b08f34"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rgrove/crass","events":[{"introduced":"0"},{"fixed":"fe775091c79c35c924655d415ad78b04be7b7ee2"},{"fixed":"689fc45c632fdf3803b2f4e844ffc9cca3b08f34"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"1.0.8"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"689fc45c632fdf3803b2f4e844ffc9cca3b08f34"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"fe775091c79c35c924655d415ad78b04be7b7ee2"}],"source":"REFERENCES_TAG","original_tag":"v1.0.8"}]}}],"versions":["v1.0.7","v1.0.6","v1.0.5","v1.0.4","v1.0.3","v1.0.2","v1.0.1","v1.0.0","v0.2.1","v0.2.0","v0.1.0","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-116695.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}