{"cve":"CVE-2023-49090","nvd":{"published":"2023-11-29T15:15:08.900","modified":"2026-06-17T06:35:20.703","status":"Modified","description":"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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5","https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3","https://github.com/carrierwaveuploader/carrierwave/security/advisories/GHSA-gxhx-g4fq-49hj","https://github.com/carrierwaveuploader/carrierwave/commit/39b282db5c1303899b3d3381ce8a837840f983b5","https://github.com/carrierwaveuploader/carrierwave/commit/863d425c76eba12c3294227b39018f6b2dccbbf3"],"products":["carrierwave_project:carrierwave"],"source":"nvd","synced_at":"2026-10-19T21:42:07.670898610+00:00"},"epss":{"cve":"CVE-2023-49090","score":0.00613,"percentile":0.49392,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gxhx-g4fq-49hj","url":"https://osv.dev/vulnerability/GHSA-gxhx-g4fq-49hj","summary":"CarrierWave Content-Type allowlist bypass vulnerability, possibly leading to XSS","modified":"2023-11-29T21:33:27Z","packages":[{"ecosystem":"RubyGems","name":"carrierwave","purl":"pkg:gem/carrierwave","ranges":[">=3.0.0 <3.0.5"],"fixed":["3.0.5"]},{"ecosystem":"RubyGems","name":"carrierwave","purl":"pkg:gem/carrierwave","ranges":["<2.2.5"],"fixed":["2.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}