css_parser is a Ruby CSS parser. (CVE-2026-53727)
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.
AI Analysis
Technical Summary
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.
css_parser is a Ruby CSS parser. (CVE-2026-53727)
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.