ADVISORIES

GitHub Advisory Database

GHSA-6jvm-3j5h-79f6

paperclip Cross-site Scripting vulnerability

Moderate CVE-2015-2963

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.

Affected packages

EcosystemPackageAffected versions
RubyGemspaperclip
All versions before 4.2.2 (fixed in 4.2.2)

References