Skip to main content
VulnerabilityPublished

CVE-2026-53727: Ruby CSS Parser · SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file`

Affects css_parserSource GCVE Database

0
Compare

Not known to be exploited : upgrade to 3.0.0 when convenient.

Data as of 3 Dec 2026, 18:37 UTC

Severity
Medium

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

  1. Disclosed: evidence found.

    CVE published 17 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
RubyGemscss_parserAffected
  • <3.0.0
Fixed in
  • 3.0.0
Ubuntu 16.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=xenialOther threatsAffected
  • =1.3.6-1
Fixed in–
Ubuntu 18.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=bionicOther threatsAffected
  • =1.3.6-1
  • =1.6.0-1
Fixed in–
Ubuntu 20.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=focalOther threatsAffected
  • =1.6.0-1
Fixed in–
Ubuntu 22.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=jammyOther threatsAffected
  • =1.6.0-1
  • =1.6.0-2
Fixed in–
Ubuntu 24.04 LTSruby-css-parserpkg:deb/ubuntu/ruby-css-parser?arch=source&distro=nobleOther threatsAffected
  • =1.6.0-2
  • =1.16.0-1
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

Community reviews

Loading reviews…