# CVE-2026-116695: Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-10-27T20:10:34.010Z
- Modified: 2026-11-03T13:17:20.200Z
- Also known as: GHSA-pq4g-8rxf-4g29
- Weaknesses: CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rgrove crass: < 1.0.8
- crass (RubyGems): before 1.0.8

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/rgrove/crass/security/advisories/GHSA-pq4g-8rxf-4g29> (web)
- <https://github.com/rgrove/crass/commit/689fc45c632fdf3803b2f4e844ffc9cca3b08f34> (web)
- <https://github.com/rgrove/crass/releases/tag/v1.0.8> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-116695> (advisory)
- <https://github.com/rgrove/crass> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-pq4g-8rxf-4g29.yml> (web)

## Sources

- CVE List: [CVE-2026-116695](https://www.cve.org/CVERecord?id=CVE-2026-116695), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-pq4g-8rxf-4g29](https://github.com/advisories/GHSA-pq4g-8rxf-4g29), CC-BY-4.0, modified 2026-10-28
- NVD: [CVE-2026-116695](https://nvd.nist.gov/vuln/detail/CVE-2026-116695), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-116695 · Whole record: https://cve.day/CVE-2026-116695.json · Rebuilt by cve.day 2026-11-25T22:59:47.459Z
