Vulnerability
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.
83 advisories report this vulnerability, across 4 ecosystems.
Advisories
- CGA-235m-3h7f-rvwm
- CGA-268g-4qpx-qcm7
- CGA-2jjq-grw6-c4x5
- CGA-2mfv-hpm6-6h4j
- CGA-2x4w-r2qm-2332
- CGA-2xrg-x5qp-5x32
- CGA-3994-xff2-cxjh
- CGA-3qh9-4pgh-h2jj
- CGA-3rpq-rq3p-3c37
- CGA-46p6-rprx-294x
- CGA-4793-qqmr-www5
- CGA-4jcq-f46c-8j56
- CGA-4jwh-5jcj-hcg9
- CGA-4v2f-23vh-v4wv
- CGA-548g-789j-gf25
- CGA-56gf-r298-qgxm
- CGA-5fjf-x9cc-q24h
- CGA-5j6q-h79r-27f8
- CGA-5vv5-jpjr-6mg5
- CGA-657j-75rv-27xq
- CGA-6586-23pv-2h3p
- CGA-6c82-f998-f37x
- CGA-6g99-4rfp-8rvh
- CGA-6x83-3hpm-4g8j
- CGA-768v-ghrq-cc2q
- CGA-797c-38gg-fjh7
- CGA-7fq6-fqf5-9vp5
- CGA-7q32-gx7r-37wp
- CGA-7r6p-7rqc-qrgr
- CGA-7vmh-qcc6-rgxm
- CGA-86g9-g5g2-fg9p
- CGA-8jhw-p5w6-rj64
- CGA-92wc-3h3p-xgr8
- CGA-9q7c-3g2j-8hrj
- CGA-9xp8-583w-cfjx
- CGA-c594-3xj5-c9cv
- CGA-c8qh-4crg-6973
- CGA-c955-3g79-rmj3
- CGA-cv5x-fv3x-9hmg
- CGA-cvj5-26qm-9mc7
- CGA-f99j-hvpw-j763
- CGA-f9mv-88mc-649c
- CGA-ff4w-qmmf-c39q
- CGA-fgq7-qpw9-m6pm
- CGA-fq4w-2f9h-9864
- CGA-fwrc-g5v8-m54p
- CGA-fx3r-q6v9-9hhh
- CGA-g235-jwv6-59ww
- CGA-gh5w-2cv9-w9x5
- CGA-gqf4-h897-xxww
- CGA-grvv-gqc3-vcc8
- CGA-gv7c-jm46-m4cq
- CGA-h3hh-fhq3-42pc
- CGA-h6qr-rf23-c8rv
- CGA-hjj8-j4cg-95vx
- CGA-hv9m-wrpc-hpr7
- CGA-hvxx-936w-mc48
- CGA-hw35-53j6-f87v
- CGA-hwrg-4w26-25c7
- CGA-j2hv-7hwp-m4gq
- CGA-jh37-qc9x-7r6h
- CGA-mj9c-435j-rp7c
- CGA-p5p8-4x3f-fh3f
- CGA-q9ch-mc5w-m885
- CGA-qmv5-mqrg-rvr3
- CGA-qxf6-3pv9-2jmx
- CGA-r5qq-4x3q-xv55
- CGA-rg7v-385p-73m5
- CGA-rvx6-2v55-q4r3
- CGA-rvxv-p55q-vgjq
- CGA-rw4v-5pwc-8fhr
- CGA-v2xg-m4mg-96gj
- CGA-v4c8-q7jw-p7pc
- CGA-vw6x-5ffm-8292
- CGA-w8jr-cm24-cc99
- CGA-wc4m-cwf9-8g9j
- CGA-whmx-r4ww-c75v
- CGA-wv2p-xf89-j7wj
- CGA-x4qw-8p75-6hw5
- CGA-x6j4-x7g8-wp28
-
DEBIAN-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…
-
GHSA-9pmc-p236-855h
Ruby CSS Parser: SSRF and Local File Disclosure in `CssParser::Parser#read_remote_file`
-
UBUNTU-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…
References
- https://github.com/premailer/css_parser/commit/7d2ddf0189cd54b54f378f59daefa10cb036e476
- https://github.com/premailer/css_parser/commit/e0a151458b2a801ae265ba420862ef8b1127b3ae
- https://github.com/premailer/css_parser/releases/tag/v3.0.0
- https://github.com/premailer/css_parser/security/advisories/GHSA-9pmc-p236-855h