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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.19% (58th 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 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

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

4.3 medium
Expand this section

Red Hat

4.3 medium