Description
Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, when Crass parses input containing `non-ASCII characters`, inefficiencies in tracking the positions of `multi-byte characters` result in superlinear parsing time. An attacker-controlled CSS input consisting of many `non-ASCII characters` can therefore cause excessive CPU consumption and potentially denial of service. This issue is fixed in version 1.0.7.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| rgrove | crass | < 1.0.7 | — |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ruby-crass | 1.0.7-1 | — |
| Debian 13 | ruby-crass | No fix yet | — |
| Debian 12 | ruby-crass | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | ruby-crass | No fix yet | — |
| Ubuntu 16.04 LTS | ruby-crass | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | crass | < 1.0.7 | 1.0.7 | GHSA-8vfg-2r28-hvhj |