CVE-2026-44312

css_parser allows to MITM included https css urls

State
Published
Severity
5.8 Medium
Published
May 14, 2026
Updated
May 15, 2026
Reserved
May 5, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.8 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:NGitHub_M

Weaknesses

  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere
  • CWE-295 Improper Certificate Validation

Affected Products

ProductVersions
css_parserpremailer
  • >= 2.0.0, < 2.1.0Affected
  • < 1.22.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.