Skip to content
OpenAdvisories
Medium CVE-2011-2931 EUVD-2017-0310GHSA-v5jg-558j-q67c

actionpack Cross-site Scripting vulnerability

Published Aug 29, 2011 · Updated Aug 6, 2024 · Assigned by redhat

Description

Cross-site scripting (XSS) vulnerability in the strip_tags helper in actionpack/lib/action_controller/vendor/html-scanner/html/node.rb in Ruby on Rails before 2.3.13, 3.0.x before 3.0.10, and 3.1.x before 3.1.0.rc5 allows remote attackers to inject arbitrary web script or HTML via a tag with an invalid name.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails 2.3.14 —
Debian 13 rails 2.3.14 —
Debian 12 rails 2.3.14 —
Debian 6.0 rails 2.3.5-1.2+squeeze1 DSA-2301-1
Debian 5.0 rails 2.1.0-7+lenny1 DSA-2301-1

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems actionpack >= 2.0.0, < 2.3.13 2.3.13 GHSA-v5jg-558j-q67c
RubyGems actionpack >= 3.0.0, < 3.0.10 3.0.10 GHSA-v5jg-558j-q67c

Advisories 1

References