Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| rgrove | crass | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Rgrove | Crass |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-pq4g-8rxf-4g29 | Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.353% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Rgrove
Rgrove crass |
|
| Vendors & Products |
Rgrove
Rgrove crass |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Crass is a Ruby CSS parser that is compliant with the CSS Syntax Level 3 specification. Prior to 1.0.8, Crass incorrectly treats a closing parenthesis after an escaped backslash as escaped while consuming the remnants of a bad URL. Crass therefore keeps declarations, style rules, or at-rules inside a bad URL token even though a browser treats them as live CSS. A sanitizer that parses untrusted CSS with Crass and reserializes it without rejecting the bad URL can allow CSS used for UI redress, external resource loading, or CSS-based data exfiltration, but this issue does not enable script execution in modern browsers. This issue is fixed in version 1.0.8. | |
| Title | Crass: Incorrect tokenization of bad URLs enables CSS sanitizer bypass | |
| Weaknesses | CWE-436 | |
| References |
| |
| Metrics |
cvssV4_0
|