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

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-09T13:43:13.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-9pmc-p236-855h
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- premailer css_parser: < 3.0.0; 2.2.0
- css_parser (RubyGems): before 3.0.0

## Every score

- GitHub_M: CVSS:4.0 8.9 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/premailer/css_parser/security/advisories/GHSA-9pmc-p236-855h> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/premailer/css_parser/commit/7d2ddf0189cd54b54f378f59daefa10cb036e476> (patch)
- <https://github.com/premailer/css_parser/commit/e0a151458b2a801ae265ba420862ef8b1127b3ae> (patch)
- <https://github.com/premailer/css_parser/releases/tag/v3.0.0> (product)
- <https://github.com/premailer/css_parser> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/css_parser/CVE-2026-53727.yml> (web)
- <https://www.cve.org/CVERecord/SearchResults?query=CVE-2026-53727> (web)

## Sources

- CVE List: [CVE-2026-53727](https://www.cve.org/CVERecord?id=CVE-2026-53727), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-9pmc-p236-855h](https://github.com/advisories/GHSA-9pmc-p236-855h), CC-BY-4.0, modified 2026-07-09
- NVD: [CVE-2026-53727](https://nvd.nist.gov/vuln/detail/CVE-2026-53727), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-53727 · Whole record: https://cve.day/CVE-2026-53727.json · Rebuilt by cve.day 2026-11-25T22:59:28.573Z
