ADVISORIES

GitHub Advisory Database

GHSA-v9v4-7jp6-8c73

rails Cross-site Scripting vulnerability

Moderate CVE-2011-2197

Details

The cross-site scripting (XSS) prevention feature in Ruby on Rails 2.x before 2.3.12, 3.0.x before 3.0.8, and 3.1.x before 3.1.0.rc2 does not properly handle mutation of safe buffers, which makes it easier for remote attackers to conduct XSS attacks via crafted strings to an application that uses a problematic string method, as demonstrated by the sub method.

Affected packages

EcosystemPackageAffected versions
RubyGemsactionpack
From 2.0.0 before 2.3.12 (fixed in 2.3.12)
RubyGemsactionpack
From 3.0.0 before 3.0.8 (fixed in 3.0.8)
RubyGemsactivesupport
From 2.0.0 before 2.3.12 (fixed in 2.3.12)
RubyGemsactivesupport
From 3.0.0 before 3.0.8 (fixed in 3.0.8)

References