CVE-2026-116695
MEDIUM 5.3CVSS 4.0Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass
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.
- Published
- 27 Oct 2026
- Last modified
- 3 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-436
- Also known as
- GHSA-pq4g-8rxf-4g29
- Sources
- NVDJSONOSV GHSA-pq4g-8rxf-4g29JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | RubyGems | crass | < 1.0.8 | 1.0.8 |
References
- https://github.com/rgrove/crass/commit/689fc45c632fdf3803b2f4e844ffc9cca3b08f34 · WEB
- https://github.com/rgrove/crass/releases/tag/v1.0.8 · WEB
- https://github.com/rgrove/crass/security/advisories/GHSA-pq4g-8rxf-4g29 · 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
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 27 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Oct 2026)