All vulnerabilities

RubyGems

CVE-2026-61846

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

Severity
Medium
Published
29 Oct 2026
Last changed
29 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.0.7
Exploit chance
0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Also known as
GHSA-6jxj-px6v-747w
Sources
OSV.dev and GitHub

Description

Crass recursively parses CSS simple blocks and functions without a depth guard. An attacker-controlled value containing many deeply nested blocks can recurse until Ruby raises SystemStackError: stack level too deep, or can cause excessive memory usage.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Add SystemStackError handling around Crass calls in your application. Buy more RAM.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
crassRubyGems · osv:RubyGems:crass
  • Every version before 1.0.7

About crass

Total downloads (RubyGems)
649,854,345RubyGems, 23 Nov 2026

References