MediumGHSA-7q8x-38mc-p84fCVE-2010-2480PYSEC-2010-1
Mako contains Cross-site Scripting vulnerability
Published 17 May 2022 · Updated 30 Sept 2024
Is your project on an affected mako?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
makoPyPI
- Affected
- <0.3.4
- Fixed in
- 0.3.4
Update to the fixed version for your release line, for example:
pip install 'mako>=0.3.4'Details
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.
Is GHSA-7q8x-38mc-p84f in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected mako, and gives you the command that fixes it.
More advisories for mako
- MediumCVE-2026-102991Mako: Path traversal via drive-letter URI on Windows in TemplateLookup · 5 Oct 2026
- HighCVE-2026-44307Mako vulnerable to path traversal via backslash URI on Windows in TemplateLookup · 6 May 2026
- HighCVE-2026-41205Mako: Path traversal via double-slash URI prefix in TemplateLookup · 16 Apr 2026
- HighCVE-2022-40023mako is vulnerable to Regular Expression Denial of Service · 16 Sept 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2010-2480
- Linkaccess.redhat.com/security/cve/CVE-2010-2480
- Linkbugs.python.org/issue9061
- Linkbugzilla.redhat.com/show_bug.cgi?id=609573
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/mako/PYSEC-2010-1.yaml
- Packagegithub.com/sqlalchemy/mako
- Linklists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
- Linkwww.makotemplates.org/CHANGES
- Linkbugs.python.org/issue9061
- Linklists.opensuse.org/opensuse-security-announce/2010-08/msg00001.html
- Linkwww.makotemplates.org/CHANGES
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.