Skip to content
OpenAdvisories
Medium · 5.3 CVE-2026-116695 EUVD-2026-111386GHSA-pq4g-8rxf-4g29

Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass

Published Oct 27, 2026 · Updated Nov 3, 2026 · 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.

Affected products

VendorProductAffectedFixed
rgrove crass < 1.0.8 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-crass 1.0.8-1 —
Debian 13 ruby-crass No fix yet —
Debian 12 ruby-crass No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-crass No fix yet —
Ubuntu 26.04 LTS ruby-crass No fix yet —
Ubuntu 24.04 LTS ruby-crass No fix yet —
Ubuntu 22.04 LTS ruby-crass No fix yet —
Ubuntu 20.04 LTS ruby-crass No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS ruby-crass No fix yet —
Ubuntu 16.04 LTS ruby-crass No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems crass < 1.0.8 1.0.8 GHSA-pq4g-8rxf-4g29

References