CVE-2026-44312
MEDIUM 5.8CVSS 3.1CSS Parser: Improper Certificate Validation allows MITM injection of remote CSS content
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.
- Published
- 14 May 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-295CWE-829
- Also known as
- GHSA-ff6c-w6qf-7xqc
- Sources
- NVDJSONOSV GHSA-ff6c-w6qf-7xqcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | RubyGems | css_parser | >= 2.0.0, < 2.1.0 | 2.1.0 |
| OSV | RubyGems | css_parser | < 1.22.0 | 1.22.0 |
References
- https://github.com/premailer/css_parser/commit/35e689c904225add78e0c488cf04bad052666449 · WEB
- https://github.com/premailer/css_parser/commit/e0c95d5abe91b237becb90ff316531a6547ada18 · WEB
- https://github.com/premailer/css_parser/issues/185 · WEB
- https://github.com/premailer/css_parser/security/advisories/GHSA-ff6c-w6qf-7xqc · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-44312 · ADVISORY
- https://github.com/premailer/css_parser · PACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/css_parser/CVE-2026-44312.yml · WEB
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 14 May 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 May 2026)