CVE Catalog

GHSA-pq4g-8rxf-4g29

Unknown
Published: —Translated: NVD NIST

Summary

Crass's tokenizer did not terminate a bad URL token at a ) that followed an escaped backslash (\\). As a result, Crass consumed more input as part of the bad URL than a spec-compliant browser does. CSS sanitizers that parse untrusted CSS with Crass and re-emit it could be tricked.

Risk Assessment

This could allow bypassing CSS sanitization and injecting malicious content into the re-emitted stylesheet. Applications using Crass to sanitize untrusted CSS are at risk.

Recommendation

Upgrade the Crass library to a version containing the tokenizer fix for bad URLs with an escaped backslash. Until then, avoid relying solely on Crass for sanitizing untrusted CSS.

Other vulnerabilities in Crass

See all
Original NVD description (English source)

## Summary Crass's tokenizer didn't terminate a bad URL token at a ) that followed an escaped backslash (\\). As a result, Crass consumed more input as part of the bad URL than a spec-compliant browser does. CSS sanitizers that parse untrusted CSS with Crass and re-emit it could be tricked into pas

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