Vulnerability
CVE-2026-61847
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.
68 advisories report this vulnerability, across 7 ecosystems.
Advisories in Chainguard
- CGA-2qjh-cqxp-rccj
- CGA-3cp9-72j4-gv44
- CGA-3hfq-4786-92hr
- CGA-3j8m-2v6h-hp45
- CGA-3qh4-w33g-mm7v
- CGA-3rcx-7cgw-c7x4
- CGA-3wq2-hh45-4x4f
- CGA-3x68-fvg5-c29q
- CGA-4f35-pf5c-85cc
- CGA-4hhr-x624-8gxg
- CGA-4r82-vggq-h3r5
- CGA-4v55-8m79-6rfc
- CGA-5hp6-6c3j-rhvv
- CGA-634m-f2xr-9c2q
- CGA-6667-p3vq-8wxp
- CGA-69gg-g57p-hxc2
- CGA-69h9-h87q-j859
- CGA-6rf3-4wpj-2jw8
- CGA-75hm-j7mj-6p56
- CGA-7m48-67r8-76jm
- CGA-7v3q-c2jh-whgf
- CGA-8m5r-x8jh-mc9v
- CGA-939p-44qf-pf38
- CGA-94c8-mr69-2jr7
- CGA-9cwq-ggq8-f763
- CGA-9f55-3mfw-3fgx
- CGA-9vc8-6mrj-6w9r
- CGA-9wr5-7wgj-69pv
- CGA-9xq7-8q6c-53rr
- CGA-f62f-3mh7-5254
- CGA-fg9h-57r3-3fqm
- CGA-g8qh-q32r-hmc6
- CGA-g92c-m7mq-hrpw
- CGA-gff8-43w9-c3qp
- CGA-gwmc-5g38-xj2p
- CGA-hvfj-hhq7-8r8c
- CGA-jf62-8vx7-2xr9
- CGA-m7hg-v26m-2f9m
- CGA-mcjr-f6j5-m56v
- CGA-mmpq-8g3v-xcvv
- CGA-mrwh-rcvg-f29c
- CGA-p45m-p7j3-wg36
- CGA-p4mf-p564-6wmv
- CGA-q352-rfpv-5564
- CGA-q52r-vvvr-q2rf
- CGA-q52v-g3vp-7hwc
- CGA-qf54-q2p7-rcmw
- CGA-qm9h-wqrv-cgq9
- CGA-qv4p-ff5h-4h9p
- CGA-rg26-r8g6-p6m9
- CGA-vw2c-gw9r-4j3m
- CGA-wqhw-wgj5-46gh
- CGA-x333-6gxc-qfhh
- CGA-x636-w2pc-cg88
- CGA-x7q5-vvmf-9mc7
- CGA-xh2c-c9mx-pxv7