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


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.19% (57th percentile)
Expand this section
NVD
4.3 medium
Expand this section
Red Hat
4.3 medium

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 ID SNYK-RUBY-ACTIONPACK-20120
  • published 2 Dec 2013
  • disclosed 2 Dec 2013
  • credit Kevin Reintjes

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