Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2026-44587

24
FAUCET Score

CarrierWave is a framework to upload files from Ruby applications. In versions prior to 2.2.7 and 3.1.3, the content_type_denylist check fails to escape regex metacharacters in string entries, causing the denylist to silently not match the content types it is intended to block. In lib/carrierwave/uploader/content_type_denylist.rb:57, denylist entries are interpolated directly into a regex without Regexp.quote or anchoring, so an entry such as image/svg+xml becomes the pattern /image\/svg+xml/, in which + is treated as a quantifier rather than a literal character and therefore never matches the real MIME type image/svg+xml. This is inconsistent with the allowlist implementation, which correctly applies both Regexp.quote and a \A anchor. Other content types containing regex metacharacters, such as application/xhtml+xml, are affected as well. As a result, any application that relies on content_type_denylist to block image/svg+xml, most commonly to prevent stored XSS, is silently unprotected. An attacker can upload an SVG file containing arbitrary JavaScript; if the application serves that SVG inline from its own origin, the script executes in the victim's browser, resulting in stored XSS. This issue has been fixed in versions 2.2.7 and 3.1.3.

First published: Jun 16, 2026Last modified: Jun 17, 2026

Impacted Technologies

VendorProductVersion(s)CPE
< 2.2.7CPE matchmatch criteria
cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*
>= 3.0.0, < 3.1.3CPE matchmatch criteria
cpe:2.3:a:carrierwave_project:carrierwave:*:*:*:*:*:ruby:*:*

CVSS Data

CVSS version used by this source: 3.1

4.7MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
LOW
Integrity Impact
NONE
Availability Impact
NONE
Exploitability Score
2.8
Impact Score
1.4
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.22%
Probability of exploitation in next 30 days
EPSS Percentile
13.1%
Percentile rank of EPSS score among Peer Group
As of 2026-07-26
Model: v2026.06.15
This CVE's current EPSS score of 0.0022 is in the 13th percentile among its peer group of 26,219 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (2)

rubygemspatch availablevia ghsa
Product: carrierwaveFixed in: 3.1.3
rubygemspatch availablevia ghsa
Product: carrierwaveFixed in: 2.2.7

Vendor Advisories (1)

rubygemsGHSA-7g26-2qgj-chfgmedium

CarrierWave has a denylisted_content_type bypass via Unescaped Regex Metacharacters

May 27, 2026

References

github.com / carrierwaveuploader/carrierwave/commit/21221cc6e260633f7da78c6133a88666a5529d27
Patch
github.com / carrierwaveuploader/carrierwave/commit/4c4a005775a436c5165df014dc9b1874c227d86c
Patch
github.com / carrierwaveuploader/carrierwave/security/advisories/GHSA-7g26-2qgj-chfg
Vendor AdvisoryExploit