# CVE-2026-61846: Crass: Deeply nested CSS blocks and functions can trigger a SystemStackError or excessive memory usage

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-10-29T16:35:16.000Z
- Modified: 2026-11-05T03:17:29.340Z
- Also known as: GHSA-6jxj-px6v-747w
- Weaknesses: CWE-400, CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- rgrove crass: < 1.0.7
- crass (RubyGems): before 1.0.7

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L`

## References

- <https://github.com/rgrove/crass/security/advisories/GHSA-6jxj-px6v-747w> (web)
- <https://github.com/rgrove/crass/commit/cf68287356ec6e20d51cfc4a2d0c3912b7334e99> (web)
- <https://github.com/rgrove/crass/releases/tag/v1.0.7> (web)
- <https://github.com/rgrove/crass> (package)

## Sources

- CVE List: [CVE-2026-61846](https://www.cve.org/CVERecord?id=CVE-2026-61846), CVE Terms of Use, modified 2026-11-05
- GitHub Advisory Database: [GHSA-6jxj-px6v-747w](https://github.com/advisories/GHSA-6jxj-px6v-747w), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-61846](https://nvd.nist.gov/vuln/detail/CVE-2026-61846), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2026-61846 · Whole record: https://cve.day/CVE-2026-61846.json · Rebuilt by cve.day 2026-11-25T22:59:48.000Z
