css_parser: SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file`
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| premailer | css_parser | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Premailer | Css Parser |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-9pmc-p236-855h | Ruby CSS Parser: SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file` |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.506% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| CPEs | cpe:2.3:a:premailer:css_parser:2.2.0:*:*:*:*:ruby:*:* |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Premailer
Premailer css Parser |
|
| Vendors & Products |
Premailer
Premailer css Parser |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | css_parser is a Ruby CSS parser. From 2.2.0 until 3.0.0, CssParser::Parser#read_remote_file in lib/css_parser/parser.rb, and therefore load_uri! and the @import-following branch of add_block!, issued HTTP and HTTPS requests against any host, port, and URI without a scheme allowlist, host or IP filtering, or protection against link-local, loopback, or RFC-1918 addresses. Location: redirects were followed recursively back into the same function, which also serviced file:// URIs, so a single attacker-controlled HTTP redirect could upgrade the bug from SSRF to arbitrary local file disclosure. Any consumer of css_parser that hands it attacker-influenced CSS together with a base_uri: option is exposed. This issue is fixed in version 3.0.0. | |
| Title | css_parser: SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file` | |
| Weaknesses | CWE-918 | |
| References |
|
|
| Metrics |
cvssV4_0
|