Cross-site Scripting (XSS) Affecting actionpack package, versions <2.3.0>=2.4, <3.1.0>=3.3, <4.0.2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.19% (59th 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-ACTIONPACK-20120
  • published2 Dec 2013
  • disclosed2 Dec 2013
  • creditKevin Reintjes

Introduced: 2 Dec 2013

CVE-2013-6416  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade actionpack to version 2.3.0, 3.1.0, 4.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the simple_format helper in Ruby on Rails meaning that any user provided HTML attributes will not be escaped correctly.

Note:

The simple_format helper converts user supplied text into html text which is intended to be safe for display. A change made to the implementation of this helper means that any user provided HTML attributes will not be escaped correctly. As a result of this error, applications which pass user-controlled data to be included as html attributes will be vulnerable to an XSS attack.

References

CVSS Scores

version 3.1