CVE-2015-2963 paperclip Cross-site Scripting vulnerability

Medium 4.3 Published Updated

Remote attackers can upload HTML files with spoofed content types to execute cross-site scripting attacks in applications using the Paperclip gem.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2015-2963?

CVE-2015-2963 is a medium-severity cross-site scripting vulnerability in n/a, published on 10 Jul 2015. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-79

Which versions are affected by CVE-2015-2963?

2 open source packages ship an affected version, including paperclip. It affects 1 product.

PackageAffectedFixed in
paperclip RubyGemsAll versions4.2.2
paperclip RubyGemsAll versions4.2.2

Products include Thoughtbot Paperclip.

How do I fix CVE-2015-2963?

Upgrade paperclip to 4.2.2 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2015-2963 being exploited?

There is no known exploitation of CVE-2015-2963 in the wild and no public exploit code.

Sources

Also known as GHSA-6jvm-3j5h-79f6.

Is CVE-2015-2963 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free