Advisory

GHSA-6jxj-px6v-747w

Also known as: CVE-2026-61846

Summary

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

Details

Impact

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.

Patches

This is fixed in Crass 1.0.7, which adds a configurable depth limit with a conservative default.

Workarounds

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-10-29 16:35 UTC
Modified
2026-10-29 16:45 UTC

Affected packages and fixes

crass

RubyGems · All systems

Affected

  • introduced 0, fixed 1.0.7 (ecosystem)

Fixed versions

1.0.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences