Vulnerability · Published Oct 27, 2026 · Assigned by GitHub_M
CVE-2026-116695Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass
Medium 5.3
In plain English
A medium-severity security flaw in crass from rgrove. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-crass | no fix listed | DEBIAN-CVE-2026-116695 |
| Debian:13 | ruby-crass | no fix listed | DEBIAN-CVE-2026-116695 |
| Debian:14 | ruby-crass | 1.0.8-1 | DEBIAN-CVE-2026-116695 |
| RubyGems | crass | 1.0.8 | GHSA-pq4g-8rxf-4g29 |
| Ubuntu:22.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-116695 |
| Ubuntu:24.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-116695 |
| Ubuntu:26.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-116695 |
| Ubuntu:26.10 | ruby-crass | no fix listed | UBUNTU-CVE-2026-116695 |
Affected products (as reported)
Weakness: CWE-436 · Vector: 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 x_refsource_CONFIRM
- https://github.com/rgrove/crass/commit/689fc45c632fdf3803b2f4e844ffc9cca3b08f34 x_refsource_MISC
- https://github.com/rgrove/crass/releases/tag/v1.0.8 x_refsource_MISC