{"id":"UBUNTU-CVE-2026-61847","details":"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.","modified":"2026-11-04T03:30:21.149508991Z","published":"2026-11-03T00:00:00Z","upstream":["CVE-2026-61847"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-61847"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-61847"},{"type":"REPORT","url":"https://github.com/rgrove/crass/security/advisories/GHSA-wwpr-jff3-395c"},{"type":"REPORT","url":"https://github.com/rgrove/crass/commit/25d78cc607c54262e9d43ea1930f3ba5bb03dfb5"},{"type":"REPORT","url":"https://github.com/rgrove/crass/commit/25d78cc607c54262e9d43ea1930f3ba5bb03dfb5"},{"type":"REPORT","url":"https://github.com/rgrove/crass/releases/tag/v1.0.7"}],"affected":[{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.2-2","binary_name":"ruby-crass"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}},{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-crass","binary_version":"1.0.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}},{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-crass","binary_version":"1.0.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}},{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-2.1","1.0.2-3"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-crass","binary_version":"1.0.2-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}},{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.2-3"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-crass","binary_version":"1.0.2-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}},{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.6-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"ruby-crass","binary_version":"1.0.6-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}},{"package":{"name":"ruby-crass","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/ruby-crass?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.6-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.0.6-1ubuntu1","binary_name":"ruby-crass"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-61847.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}