CVE-2010-2480 Mako contains Cross-site Scripting vulnerability

Medium 4.3 Published Updated

Remote attackers can execute arbitrary scripts in user browsers via XSS due to insufficient escaping in the Mako templating library.

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-2010-2480?

CVE-2010-2480 is a medium-severity cross-site scripting vulnerability in n/a, published on 2 Jul 2010. 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

Mako before 0.3.4 relies on the cgi.escape function in the Python standard library for cross-site scripting (XSS) protection, which makes it easier for remote attackers to conduct XSS attacks via vectors involving single-quote characters and a JavaScript onLoad event handler for a BODY element.

Weakness: CWE-79

Which versions are affected by CVE-2010-2480?

3 open source packages ship an affected version, including mako. It affects 1 product.

PackageAffectedFixed in
mako PyPIAll versions0.3.4
mako PyPIAll versions0.3.4
mako PyPIAll versions0.3.4

Products include Makotemplates Mako.

How do I fix CVE-2010-2480?

Upgrade mako to 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-2010-2480 being exploited?

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

Sources

Also known as DEBIAN-CVE-2010-2480, GHSA-7q8x-38mc-p84f, PYSEC-2010-1.

Is CVE-2010-2480 in your software?

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

Check your SBOMs for free