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?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

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
mako security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.