Cross-site Scripting (XSS) Affecting ruby-carrierwave package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.07% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DEBIAN12-RUBYCARRIERWAVE-6483802
  • published26 Mar 2024
  • disclosed29 Nov 2023

Introduced: 29 Nov 2023

CVE-2023-49090  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

There is no fixed version for Debian:12 ruby-carrierwave.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby-carrierwave package and not the ruby-carrierwave package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

CarrierWave is a solution for file uploads for Rails, Sinatra and other Ruby web frameworks. CarrierWave has a Content-Type allowlist bypass vulnerability, possibly leading to XSS. The validation in allowlisted_content_type? determines Content-Type permissions by performing a partial match. If the content_type argument of allowlisted_content_type? is passed a value crafted by the attacker, Content-Types not included in the content_type_allowlist will be allowed. This issue has been patched in versions 2.2.5 and 3.0.5.

CVSS Scores

version 3.1