XSS Vulnerability in the `sanitize` helper of Ruby on Rails

Metadata

medium
4.3
actionpack
CVE-2013-1857
osvdb.org
2013-03-19
2017-06-16 19:03
CVE-2013-1857 ruby-actionpack-2.3
CVE-2013-1857 ruby-actionpack-3.2
CVE-2013-1857 rails
CVE-2013-1857
2017-04-01 19:10
2017-01-05 20:15

Description

The sanitize helper in Ruby on Rails is designed to
filter HTML and remove all tags and attributes which could be
malicious. The code which ensured that URLs only contain supported
protocols contained several bugs which could allow an attacker to
embed a tag containing a URL which executes arbitrary javascript
code.

Am I vulnerable?

The constraints below list the versions that this vulnerability is patched in, and versions that are unaffected. If a patch is ready but unrealeased, then it is pending.

Or, you can just let us figure it out for you! Appcanary continously monitor your installed packages, and tell you if any of them are vulnerable.

Sign up for monitoring

Affected package information

Package Patched in Unaffected in
actionpack ~> 2.3.18,~> 3.1.12,>= 3.2.13 None