CVE-2020-8264 Cross-site scripting in actionpack
An attacker can execute JavaScript in the context of a local Rails application via a crafted URL when running in development mode.
- 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-2020-8264?
CVE-2020-8264 is a medium-severity cross-site scripting vulnerability in Rubyonrails Rails, published on 6 Jan 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
In actionpack gem >= 6.0.0, a possible XSS vulnerability exists when an application is running in development mode allowing an attacker to send or embed (in another page) a specially crafted URL which can allow the attacker to execute JavaScript in the context of the local application. This vulnerability is in the Actionable Exceptions middleware.
Weakness: CWE-79
Which versions are affected by CVE-2020-8264?
2 open source packages ship an affected version, including actionpack. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
actionpack RubyGems | From 6.0.0 | 6.0.3.4 |
actionpack RubyGems | From 6.0.0 | 6.0.3.4 |
Products include Rubyonrails Rails.
How do I fix CVE-2020-8264?
Upgrade actionpack to 6.0.3.4 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-2020-8264 being exploited?
There is no known exploitation of CVE-2020-8264 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 DEBIAN-CVE-2020-8264, GHSA-35mm-cc6r-8fjp.