CVE Catalog

GHSA-wwpr-jff3-395c

Unknown
Published: Translated: NVD NIST

Summary

A vulnerability in the Crass library allows a DoS attack by providing a stylesheet with a very large number of adjacent CSS comments when the :preserve_comments option is disabled (default behavior). This causes excessive recursion and potential system resource exhaustion.

Risk Assessment

An attacker can remotely overload a server or application using Crass to process CSS, leading to denial of service (DoS) and disruption of user operations.

Recommendation

Update the Crass library to the latest patched version. If an update is not possible, consider enabling the :preserve_comments option or limiting the size of processed stylesheets.

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 Sys

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