CVE-2020-8264 Cross-site scripting in actionpack

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
actionpack RubyGemsFrom 6.0.06.0.3.4
actionpack RubyGemsFrom 6.0.06.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.

All Rubyonrails Rails vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-8264, GHSA-35mm-cc6r-8fjp.

Is CVE-2020-8264 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free