css_parser: SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file`
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| premailer | css_parser | before 3.0.0 | 3.0.0 | Patch available | CNA |
| — | css_parser (RubyGems) | before 3.0.0 | 3.0.0 | Patch available | GHSA-9pmc-p236-855h |
- css_parser Vendorpremailer Affected before 3.0.0 Fixed in 3.0.0 Patch available CNA
- css_parser (RubyGems) Vendor— Affected before 3.0.0 Fixed in 3.0.0 Patch available GHSA-9pmc-p236-855h
Remediation
- Fix · CNA css_parser (premailer) Fixed in 3.0.0
- Fix · GHSA-9pmc-p236-855h css_parser (RubyGems) Fixed in 3.0.0 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat 3scale API Management Platform 2
Timeline
- 2026-10-02 Threatist record created from CVE-2026-53727
- 2026-10-03 Alias added: GHSA-9pmc-p236-855h
References
Patch 2
Sources
- CVE-2026-53727 · CVE Program
- CVE-2026-53727 · NVD
- FIRST EPSS
- GHSA-9pmc-p236-855h · GitHub Advisory Database · CC BY 4.0
- CVE-2026-53727 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences