MEDIUM
GHSA-6jvm-3j5h-79f6
paperclip Cross-site Scripting vulnerability
Quick fix
GHSA-6jvm-3j5h-79f6 — paperclip: upgrade to the fixed version with the command below.
bundle update paperclipDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2015-2963[ADVISORY]
- https://github.com/thoughtbot/paperclip/commit/9aee4112f36058cd28d5fe4a006d6981bd1eda57[WEB]
- https://github.com/thoughtbot/paperclip[PACKAGE]
- https://robots.thoughtbot.com/paperclip-security-release[WEB]
- https://web.archive.org/web/20200228084907/http://www.securityfocus.com/bid/75304[WEB]
- http://jvn.jp/en/jp/JVN83881261/index.html[WEB]
- http://jvndb.jvn.jp/jvndb/JVNDB-2015-000088[WEB]
- http://openwall.com/lists/oss-security/2015/06/19/3[WEB]