# GHSA-6JXJ-PX6V-747W: Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-10-29
- Modified: 2026-10-29

## Tracked as

- [CVE-2026-61846](https://cve.now/CVE-2026-61846.md): Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage

## Affected versions

- crass (RubyGems): fixed in 1.0.7

## Description

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

## References

- https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w
- https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99
- https://github.com/rgrove/crass
- https://github.com/rgrove/crass/releases/tag/v1.0.7

Page: https://cve.now/GHSA-6JXJ-PX6V-747W

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
