CVE-2009-3012 Cross-site scripting in n/a

Medium 4.3 Published Updated

Remote attackers can execute arbitrary JavaScript via crafted data URIs in HTTP Location headers, requiring user interaction to trigger the XSS.

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
None listed

What is CVE-2009-3012?

CVE-2009-3012 is a medium-severity cross-site scripting vulnerability in Mozilla Firefox, published on 31 Aug 2009. 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

Mozilla Firefox 3.0.13 and earlier, 3.5, 3.6 a1 pre, and 3.7 a1 pre does not properly block data: URIs in Location headers in HTTP responses, which allows remote attackers to conduct cross-site scripting (XSS) attacks via vectors related to (1) injecting a Location header that contains JavaScript sequences in a data:text/html URI or (2) entering a data:text/html URI with JavaScript sequences when specifying the content of a Location header. NOTE: the JavaScript executes outside of the context of the HTTP site.

Weakness: CWE-79

Which versions are affected by CVE-2009-3012?

It affects 1 product.

Products include Mozilla Firefox.

How do I fix CVE-2009-3012?

No fix has been published for CVE-2009-3012 yet. Limit exposure of the affected software until one is available.

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-2009-3012 being exploited?

There is no known exploitation of CVE-2009-3012 in the wild and no public exploit code.

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-mpq2-pcrq-r69f.

Is CVE-2009-3012 in your software?

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

Check your SBOMs for free