CVE-2011-1497 Cross site scripting in actionpack Rubygem
An XSS flaw in the auto_link function allows attackers to inject malicious scripts, requiring an upgrade to Rails.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2011-1497?
CVE-2011-1497 is a medium-severity cross-site scripting vulnerability in Rubyonrails Rails, published on 19 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A cross-site scripting vulnerability flaw was found in the auto_link function in Rails before version 3.0.6.
Weakness: CWE-79
Which versions are affected by CVE-2011-1497?
2 open source packages ship an affected version, including actionpack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | From 3.0.0.rc | 3.0.6 |
actionpack RubyGems | From 3.0.0.rc | 3.0.6 |
Products include Rubyonrails Rails.
How do I fix CVE-2011-1497?
Upgrade actionpack to 3.0.6 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2011-1497 being exploited?
There is no known exploitation of CVE-2011-1497 in the wild and no public exploit code.
Other vulnerabilities in Rubyonrails Rails
- CVE-2013-0277 Active Record contains deserialization of arbitrary YAML
- CVE-2017-17916 SQL injection in n/a
- CVE-2017-17917 SQL injection in n/a
- CVE-2026-33195 Rails Active Storage has possible Path Traversal in DiskService
- CVE-2024-26142 Rails possible ReDoS vulnerability in Accept header parsing in Action Dispatch
Sources
Also known as GHSA-q58j-fmvf-9rq6.