CVE-2026-44587: carrierwave_project carrierwave Cross-site Scripting
Vulnerability summary
CVE-2026-44587 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in carrierwave_project carrierwave. EPSS estimates a 0.34% chance of exploitation in the next 30 days, higher than 25.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 16-06-2026PublishedVulnerability first disclosed.
- 17-06-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 6 sources · 1 version- CVE.orgCNA4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · RubygemsEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NDiffers
EPSS trend
Probability
0.34%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
+0.11 pp
From 0.22% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundCarrierwave
Maturity: poc
Weaknesses
CWE · root cause- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- CWE-184Incomplete List of Disallowed InputsThe product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.
- CWE-625Permissive Regular ExpressionThe product uses a regular expression that does not sufficiently restrict the set of allowed values.
Affected systems
Chainguard40 products
- commercial-gitlab-rails-ee-19.1All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.2All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.3All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.4All versions (No fix recorded)
- commercial-gitlab-rails-ee-19.5All versions (No fix recorded)
Carrierwave_project1 product
- carrierwave< 2.2.7 | ≥ 3.0.0, < 3.1.3
Carrierwaveuploader1 product
- carrierwave< 2.2.7 | ≥ 3.0.0.rc, < 3.1.3
Debian1 product
- ruby-carrierwaveAll versions (No fix recorded)
RubyGems1 product
- carrierwave≥ 3.0.0.beta, < 3.1.3 | < 2.2.7
Ubuntu1 product
- ruby-carrierwaveAll versions (No fix recorded)
6 vendors · 45 products
References
10 links- github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-7g26-2qgj-chfgX Refsource CONFIRMAdvisoryWEBVendor AdvisoryExploit
- github.com/carrierwaveuploader/carrierwave/commit/21221cc6e260633f7da78c6133a88666a5529d27X Refsource MISCFIXWEBPatch
- github.com/carrierwaveuploader/carrierwave/commit/4c4a005775a436c5165df014dc9b1874c227d86cX Refsource MISCFIXWEBPatch