Vulnerability · Published May 14, 2026 · Assigned by GitHub_M
CVE-2026-44312css_parser allows to MITM included https css urls
Medium 5.8
In plain English
A medium-severity improper certificate validation in css_parser from premailer. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
css_parser is a Ruby CSS parser. Prior to 2.1.0 and 1.22.0, the CSS Parser gem does not validate HTTPS connections, allowing a Man-in-the-Middle (MITM) attacker to inject or modify CSS content when stylesheets are loaded via HTTPS. The connection is established with OpenSSL::SSL::VERIFY_NONE, meaning any HTTPS certificate—even entirely untrusted—will be accepted without validation. This vulnerability is fixed in 2.1.0 and 1.22.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-css-parser | 1.6.0-2+deb12u1 | DEBIAN-CVE-2026-44312 |
| Debian:13 | ruby-css-parser | 1.19.0-1+deb13u1 | DEBIAN-CVE-2026-44312 |
| Debian:14 | ruby-css-parser | 2.1.0-1 | DEBIAN-CVE-2026-44312 |
| RubyGems | css_parser | 2.1.0 | GHSA-ff6c-w6qf-7xqc |
| RubyGems | css_parser | 1.22.0 | GHSA-ff6c-w6qf-7xqc |
| Ubuntu:22.04:LTS | ruby-css-parser | no fix listed | UBUNTU-CVE-2026-44312 |
| Ubuntu:24.04:LTS | ruby-css-parser | no fix listed | UBUNTU-CVE-2026-44312 |
| Ubuntu:25.10 | ruby-css-parser | no fix listed | UBUNTU-CVE-2026-44312 |
| Ubuntu:26.04:LTS | ruby-css-parser | no fix listed | UBUNTU-CVE-2026-44312 |
| Ubuntu:26.10 | ruby-css-parser | no fix listed | UBUNTU-CVE-2026-44312 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| premailer | css_parser | >= 2.0.0, < 2.1.0< 1.22.0 |
Weakness: CWE-829, CWE-295 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
References
- https://github.com/premailer/css_parser/security/advisories/GHSA-ff6c-w6qf-7xqc x_refsource_CONFIRM
- https://github.com/premailer/css_parser/issues/185 x_refsource_MISC
- https://github.com/premailer/css_parser/commit/35e689c904225add78e0c488cf04bad052666449 x_refsource_MISC
- https://github.com/premailer/css_parser/commit/e0c95d5abe91b237becb90ff316531a6547ada18 x_refsource_MISC