Cross-site Scripting (XSS) Affecting paperclip package, versions < 4.2.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.43% (75th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-PAPERCLIP-20223
  • published4 Jun 2015
  • disclosed4 Jun 2015
  • creditJon Yurek, Mike Burns, MORI Shingo

Introduced: 4 Jun 2015

CVE-2015-2963  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade paperclip to version 4.2.2 or higher.

Overview

paperclip is an upload management for ActiveRecord.

Affected versions of this gem are vulnerable to Cross-site Scripting attacks. There is an issue where if an HTML file is uploaded with a .html extension, but the content type is listed as being image/jpeg, this will bypass a validation checking for images. But it will also pass the spoof check, because a file named .html and containing actual HTML passes the spoof check.

Details

<>

CVSS Scores

version 3.1