CVE-2023-49090 is a medium-severity cross-site scripting (XSS) vulnerability in carrierwave (rubygems), affecting versions >= 3.0.0, < 3.0.5. It is fixed in 3.0.5, 2.2.5.
Impact CarrierWave::Uploader::ContentTypeAllowlist has a Content-Type allowlist bypass vulnerability, possibly leading to XSS. The validation in allowlistedcontenttype? determines Content-Type permissions by performing a partial match. If the contenttype argument of allowlistedcontenttype? is passed a value crafted by the attacker, Content-Types not included in the contenttypeallowlist will be allowed. In addition, by setting the Content-Type configured by the attacker at the time of file delivery, it is possible to cause XSS on the user's browser when the uploaded file is opened. Patches Upgrade to 3.0.5 or 2.2.5. Workarounds When validating with allowlistedcontenttype? in CarrierWave::Uploader::ContentTypeAllowlist , forward match(\A) the Content-Type set in contenttypeallowlist, preventing unintentional permission of text/html;image/png when you want to allow only image/png in contenttypeallowlist. References OWASP - File Upload Cheat Sheet
Untrusted input is rendered as active markup in a victim's browser, which can run script in their session. Typical impact: session or credential theft, and actions taken as the user.
CVE-2023-49090 has a CVSS score of 6.8 (Medium). The vector is network-reachable, low privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.
A fixed version is available (3.0.5, 2.2.5). Upgrading removes the vulnerable code path.
rubygems
carrierwave (>= 3.0.0, < 3.0.5)carrierwave (< 2.2.5)carrierwave → 3.0.5 (rubygems)carrierwave → 2.2.5 (rubygems)Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.
Kodem's runtime-powered SCA identifies whether CVE-2023-49090 is reachable in your applications. Explore open-source security for your team.
See if CVE-2023-49090 is reachable in your applications. Get a demo
Upgrade the following packages to resolve this vulnerability:
carrierwave to 3.0.5 or latercarrierwave to 2.2.5 or laterKodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.
CVE-2023-49090 is a medium-severity cross-site scripting (XSS) vulnerability in carrierwave (rubygems), affecting versions >= 3.0.0, < 3.0.5. It is fixed in 3.0.5, 2.2.5. Untrusted input is rendered as active markup in a victim's browser, which can run script in their session.
CVE-2023-49090 has a CVSS score of 6.8 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
carrierwave (rubygems) versions >= 3.0.0, < 3.0.5 is affected.
Yes. CVE-2023-49090 is fixed in 3.0.5, 2.2.5. Upgrade to this version or later.
Whether CVE-2023-49090 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
carrierwave to 3.0.5 or latercarrierwave to 2.2.5 or later