# CVE-2026-61847: Crass: A large number of adjacent CSS comments can trigger a SystemStackError

- 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:23.000Z
- Modified: 2026-10-30T23:17:12.003Z
- Also known as: GHSA-wwpr-jff3-395c
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, 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, when the `:preserve_comments` option is not enabled, which is the default, Crass discards CSS comments by recursively consuming the next token. An attacker-provided stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a `SystemStackError`, denying service to the parsing application. Preserving comments avoids this recursive path. 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-wwpr-jff3-395c> (web)
- <https://github.com/rgrove/crass/commit/25d78cc607c54262e9d43ea1930f3ba5bb03dfb5> (web)
- <https://github.com/rgrove/crass/releases/tag/v1.0.7> (web)
- <https://github.com/rgrove/crass> (package)

## Sources

- CVE List: [CVE-2026-61847](https://www.cve.org/CVERecord?id=CVE-2026-61847), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-wwpr-jff3-395c](https://github.com/advisories/GHSA-wwpr-jff3-395c), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-61847](https://nvd.nist.gov/vuln/detail/CVE-2026-61847), Public domain, modified 2026-10-30

---

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