{"id":"GHSA-6jvm-3j5h-79f6","summary":"paperclip Cross-site Scripting vulnerability","details":"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.","aliases":["CVE-2015-2963"],"modified":"2024-11-30T05:38:38.425648Z","published":"2017-10-24T18:33:36Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:19:37Z","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-2963"},{"type":"WEB","url":"https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57"},{"type":"PACKAGE","url":"https://github.com/thoughtbot/paperclip"},{"type":"WEB","url":"https://robots.thoughtbot.com/paperclip-security-release"},{"type":"WEB","url":"https://web.archive.org/web/20200228084907/http://www.securityfocus.com/bid/75304"},{"type":"WEB","url":"http://jvn.jp/en/jp/JVN83881261/index.html"},{"type":"WEB","url":"http://jvndb.jvn.jp/jvndb/JVNDB-2015-000088"},{"type":"WEB","url":"http://openwall.com/lists/oss-security/2015/06/19/3"}],"affected":[{"package":{"name":"paperclip","ecosystem":"RubyGems","purl":"pkg:gem/paperclip"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.2.2"}]}],"versions":["2.1.0","2.1.2","2.1.5","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7","2.2.8","2.2.9.1","2.2.9.2","2.3.0","2.3.1","2.3.1.1","2.3.10","2.3.11","2.3.12","2.3.15","2.3.16","2.3.2","2.3.3","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4","2.4.5","2.5.0","2.5.1","2.5.2","2.6.0","2.7.0","2.7.1","2.7.2","2.7.4","2.7.5","2.8.0","3.0.2","3.0.3","3.0.4","3.1.0","3.1.1","3.1.2","3.1.4","3.2.0","3.2.1","3.3.0","3.3.1","3.4.0","3.4.1","3.4.2","3.5.0","3.5.1","3.5.2","3.5.3","3.5.4","4.0.0","4.1.0","4.1.1","4.2.0","4.2.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-6jvm-3j5h-79f6/GHSA-6jvm-3j5h-79f6.json"}}],"schema_version":"1.9.0"}