Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 70%

css_parser is a Ruby CSS parser. (CVE-2026-53727)

0
Medium
Published: 07/17/2026 (07/17/2026, 21:17:00 UTC)
Source: GCVE Database
Product: ruby-css-parser

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.

CVSS v3.1

Score 8.6high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Affected software

RubyGemsghsa
css_parser
Affected versions
<3.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/25/2026, 21:00:40 UTC

Technical Analysis

The css_parser Ruby library versions from 2.2.0 up to but not including 3.0.0 contain a Server-Side Request Forgery (SSRF) vulnerability in the CssParser::Parser#read_remote_file method. This method, used by load_uri! and the @import-following branch of add_block!, issues HTTP and HTTPS requests without restrictions on host, port, or URI scheme. It lacks allowlists or filtering for link-local, loopback, or RFC-1918 addresses. Redirects are followed recursively, and file:// URIs are also processed, enabling an attacker to escalate SSRF to arbitrary local file disclosure via a crafted redirect. The vulnerability affects any application that passes attacker-influenced CSS with a base_uri option to css_parser. The issue is resolved in version 3.0.0.

Potential Impact

An attacker can exploit this vulnerability to make the vulnerable application perform HTTP/HTTPS requests to arbitrary hosts, including internal network resources, potentially accessing sensitive internal services. Furthermore, due to recursive redirect handling and file URI processing, the attacker can escalate the attack to disclose arbitrary local files on the server. This can lead to information disclosure and potentially further compromise depending on the environment.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-9pmc-p236-855h
Osv Schema Version
1.4.0
Aliases
["CVE-2026-53727"]
Ecosystems
["RubyGems"]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a50bac868715ace435892a4

Added to database: 07/10/2026, 09:26:32 UTC

Last enriched: 07/25/2026, 21:00:40 UTC

Last updated: 09/04/2026, 03:18:28 UTC

Views: 190

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses