CVE Catalog

GHSA-84w7-hpvm-rxx2

Unknown
Published: —Translated: NVD NIST

Summary

expand_shorthand! (and the expand_dimensions_shorthand! it calls) runs the RE_FUNCTIONS regex over declaration values. That regex has a nested quantifier inside a group that can recurse, so on a value that opens a CSS function and never closes it, the match degrades into exponential backtracking.

Risk Assessment

An attacker can supply specially crafted CSS, causing CPU resource exhaustion (DoS attack) and unavailability of the CSS-processing service. This can paralyze the application or server.

Recommendation

Update the library to a version that fixes the regex or limits recursion. Implement timeouts for CSS processing and input validation to prevent DoS attacks.

Other vulnerabilities in css_parser

See all
Original NVD description (English source)

## SUMMARY expand_shorthand! (and the expand_dimensions_shorthand! it calls) runs the RE_FUNCTIONS regex over declaration values. That regex has a nested quantifier inside a group that can recurse, so on a value that opens a CSS function and never closes it, the match degrades into exponential back

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