Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-61846 EUVD-2026-114322GHSA-6jxj-px6v-747w

Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage

Published Oct 30, 2026 · Updated Nov 5, 2026 · Assigned by GitHub_M

Description

Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, Crass recursively parses `CSS simple blocks and functions` without a depth guard. An attacker-controlled CSS value containing deeply nested blocks or functions can recurse until Ruby raises `SystemStackError`: stack level too deep, or cause excessive memory usage. Version 1.0.7 adds a configurable depth limit with a conservative default. This issue is fixed in version 1.0.7.

Affected products

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 ruby-crass 1.0.7-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.7 1.0.7 GHSA-6jxj-px6v-747w

References