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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.3
- **CVSS:** 4.3 (v2.0, NVD) `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Medium; Authentication: None; Confidentiality impact: None; Integrity impact: Partial; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.82% (percentile 79, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-7q8x-38mc-p84f, PYSEC-2010-1
- **Published:** 2010-07-02T18:30:00.000Z
- **Modified:** 2026-06-16T23:20:50.070Z

## Who should check

- Projects that depend on PyPI package mako (\< 0.3.4)
- Anyone running n/a (versions: see the vendor advisory)

## 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.

## Affected and fixed versions

- PyPI `mako`: affected \< 0.3.4; fixed 0.3.4 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade mako to 0.3.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2010-2480. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2010-2480.md
Affected: mako < 0.3.4
Fixed in: 0.3.4

Steps:
1. Search this machine and project for mako (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2010-2480 being exploited?

There is no confirmed exploitation: CVE-2010-2480 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.82% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2010-2480?

Medium: CVSS 4.3 (v2.0, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2010-2480?

mako \< 0.3.4.

### Is there a fix for CVE-2010-2480?

Yes. Fixed in 0.3.4. Upgrade mako to 0.3.4 or later.

### How do I check if I'm affected by CVE-2010-2480?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html>
- vendor: <http://secunia.com/advisories/39935>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2010-2480>
- vendor: <https://github.com/advisories/GHSA-7q8x-38mc-p84f>
- other: <http://www.makotemplates.org/CHANGES>
- other: <http://bugs.python.org/issue9061>
- other: <https://access.redhat.com/security/cve/CVE-2010-2480>
- other: <https://bugs.python.org/issue9061>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=609573>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/mako/PYSEC-2010-1.yaml>
- other: <https://github.com/sqlalchemy/mako>
- other: <https://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html>
- other: <https://www.makotemplates.org/CHANGES>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2010-2480>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7q8x-38mc-p84f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2010-1> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2010-2480> · JSON: <https://flawdb.com/api/v1/entries/CVE-2010-2480>
