CVE-2026-53727: Ruby CSS Parser · SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file`
Affects css_parserSource GCVE Database
Not known to be exploited : upgrade to 3.0.0 when convenient.
Data as of 3 Dec 2026, 18:37 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.0.0
Exploitation evidence
Disclosed: evidence found.
CVE published 17 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade css_parser to 3.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RubyGemscss_parser | Affected
| Fixed in
|
Ubuntu 16.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade css_parser to version 3.0.0 or later, where this vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Patch status is confirmed fixed in 3.0.0.
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.
References
- github.com/premailer/css_parser/security/advisories/GHSA-9pmc-p236-855h (opens in a new tab)
- github.com/premailer/css_parser/commit/7d2ddf0189cd54b54f378f59daefa10cb036e476 (opens in a new tab)
- github.com/premailer/css_parser/commit/e0a151458b2a801ae265ba420862ef8b1127b3ae (opens in a new tab)
- github.com/premailer/css_parser/releases/tag/v3.0.0 (opens in a new tab)
- ubuntu.com/security/CVE-2026-53727 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-53727 (opens in a new tab)