{"id":"CVE-2015-2963","published":"2015-07-10T17:00:00Z","modified":"2024-08-06T05:32:20Z","title":"The thoughtbot paperclip gem before 4.2.2 for Ruby does not consider the content-type value during media-type…","vendor":null,"product":null,"tier":"tail","description":{"text":"The thoughtbot paperclip gem before 4.2.2 for Ruby does not consider the content-type value during media-type validation, which allows remote attackers to upload HTML documents and conduct cross-site scripting (XSS) attacks via a spoofed value, as demonstrated by image/jpeg.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02106,"percentile":0.82202,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/75304","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://robots.thoughtbot.com/paperclip-security-release","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57","tags":["x_refsource_CONFIRM"]},{"url":"http://jvn.jp/en/jp/JVN83881261/index.html","tags":["third-party-advisory","x_refsource_JVN"]},{"url":"http://jvndb.jvn.jp/jvndb/JVNDB-2015-000088","tags":["third-party-advisory","x_refsource_JVNDB"]},{"url":"http://openwall.com/lists/oss-security/2015/06/19/3","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.4,"factors":[{"name":"EPSS percentile","points":16.44}]},"affected":[{"ecosystem":"RubyGems","package":"paperclip","vulnerableRanges":["<4.2.2"],"patched":["4.2.2"],"from":["GHSA-6jvm-3j5h-79f6"],"provenance":"source"}],"summary":{"text":"The thoughtbot paperclip gem for Ruby, in versions before 4.2.2, fails to check the content-type value during media-type validation of uploaded files. An attacker who can submit an upload can supply a spoofed content type, such as image/jpeg, to upload an HTML document and carry out cross-site scripting attacks.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:28Z"},"euvd":{"id":"EUVD-2017-0177","exploited":false,"provenance":"source"}}