{"id":"CVE-2026-53727","published":"2026-07-17T20:30:37Z","modified":"2026-07-20T13:48:30Z","title":"css_parser: SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file`","vendor":"premailer","product":"css_parser","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.9,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00506,"percentile":0.44133,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/premailer/css_parser/security/advisories/GHSA-9pmc-p236-855h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/premailer/css_parser/commit/7d2ddf0189cd54b54f378f59daefa10cb036e476","tags":["x_refsource_MISC"]},{"url":"https://github.com/premailer/css_parser/commit/e0a151458b2a801ae265ba420862ef8b1127b3ae","tags":["x_refsource_MISC"]},{"url":"https://github.com/premailer/css_parser/releases/tag/v3.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":8.83},{"name":"CVSS severity","points":6.23}]},"vendorSlug":"premailer","affectedVersions":[{"vendor":"premailer","product":"css_parser","versions":["< 3.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T13:48:25.291408Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"css_parser","vulnerableRanges":["<3.0.0"],"patched":["3.0.0"],"from":["GHSA-9pmc-p236-855h"],"provenance":"source"}],"summary":{"text":"The css_parser Ruby library (product css_parser by premailer) contains a flaw in CssParser::Parser#read_remote_file, which is reached through load_uri! and the @import-following branch of add_block!, in versions from 2.2.0 up to but not including 3.0.0. An attacker who can supply CSS to a consumer that also passes a base_uri: option can make the parser issue HTTP/HTTPS requests to arbitrary hosts and ports and, by redirecting to file:// URIs, read local files, with no network authentication or user interaction required beyond the application processing the attacker-influenced CSS.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:50Z"},"euvd":{"id":"EUVD-2026-45324","exploited":false,"provenance":"source"}}