CVE Catalog

CVE-2026-61847

Medium
Published: —Translated: NVD NIST

Summary

When the :preserve_comments option is not enabled (the default behavior), Crass discards CSS comments by recursively consuming the next token. An attacker providing a stylesheet with a very large number of adjacent comments can cause excessive recursion.

Risk Assessment

An attacker can supply a crafted CSS stylesheet with many adjacent comments, causing excessive recursion and potential resource exhaustion (denial of service).

Recommendation

Update Crass to a version containing the fix. Consider limiting the number of comments in CSS stylesheets processed from untrusted sources.

Other vulnerabilities in Crass

See all
Original NVD description (English source)

### Impact When the `:preserve_comments` option is not enabled (which is the default behavior), Crass discards CSS comments by recursively consuming the next token. An attacker who provides a stylesheet containing a very large number of adjacent comments can cause excessive recursion and trigger a

Vulnerability data from NVD (NIST) · CISA KEV · EPSS