{"answers":{"affected":"3 open source packages ship an affected version, including mako and Mako. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-41205 in the wild and no public exploit code.","fix":"Upgrade mako to 1.3.11 or later.","what":"CVE-2026-41205 is a high-severity path traversal vulnerability in sqlalchemy mako, published on 23 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-41205 and fix it if it is affected.\n\nWhat it is: CVE-2026-41205 is a high-severity path traversal vulnerability in sqlalchemy mako, published on 23 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-41205 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mako (PyPI): affected all versions; fixed in 1.3.11\n- mako (PyPI): affected all versions; fixed in 1.3.11\n- Mako (PyPI): affected all versions; fixed in 1.3.11\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-41205/ (Markdown: https://insights.sbomify.com/CVE-2026-41205/index.md)","id":"CVE-2026-41205","markdown":"https://insights.sbomify.com/CVE-2026-41205/index.md","name":"CVE-2026-41205","record":{"aliases":["AZL-83606","CLEANSTART-2026-QL06505","CLEANSTART-2026-TN41416","CLSA-2026-1791547905","DEBIAN-CVE-2026-41205","ECHO-0e1e-5a56-ed2d","GHSA-v92g-xgxw-vvmm","MINI-2g53-5wvv-f8cq","MINI-59q5-m3jf-chw3","MINI-688j-xfgj-8jf8","MINI-c8mp-fxq5-j6m2","MINI-w3rv-59j8-cmm9","MINI-xj72-mp2j-v4fw","PYSEC-2026-88","ROOT-APP-PYPI-CVE-2026-41205","SUSE-SU-2026:1819-1","SUSE-SU-2026:1820-1","SUSE-SU-2026:21426-1","UBUNTU-CVE-2026-41205","USN-8234-1","openSUSE-SU-2026:10616-1","openSUSE-SU-2026:20645-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python template library","requires_auth":"none","summary":"Attackers can read arbitrary files by passing double-slash URIs to Mako's TemplateLookup, exposing sensitive data to anyone using the library.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mako","vendor":"sqlalchemy"}],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Mako is a template library written in Python. Prior to 1.3.11, TemplateLookup.get_template() is vulnerable to path traversal when a URI starts with // (e.g., //../../../secret.txt). The root cause is an inconsistency between two slash-stripping implementations. Any file readable by the process can be returned as rendered template content when an application passes untrusted input directly to TemplateLookup.get_template(). This vulnerability is fixed in 1.3.11.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Mako: Path traversal via double-slash URI prefix in TemplateLookup","id":"CVE-2026-41205","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":4,"n_references":3,"next":{"headline":"PySpector has a Plugin Code Execution Bypass via Incomplete Static Analysis in PluginSecurity.validate_plugin_code","id":"CVE-2026-41206"},"packages":[{"ecosystem":"PyPI","fixed":["1.3.11"],"introduced":["0"],"last_affected":[],"package":"Mako","purl":null,"source":"GHSA-v92g-xgxw-vvmm"},{"ecosystem":"PyPI","fixed":["1.3.11"],"introduced":["0"],"last_affected":[],"package":"mako","purl":"pkg:pypi/mako","source":"GHSA-v92g-xgxw-vvmm"},{"ecosystem":"PyPI","fixed":["1.3.11"],"introduced":["0"],"last_affected":[],"package":"mako","purl":"pkg:pypi/mako","source":"PYSEC-2026-88"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.3.11-1.1"],"introduced":["0"],"last_affected":[],"package":"python-Mako","purl":"pkg:rpm/opensuse/python-Mako\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10616-1"}],"prev":{"headline":"ci4ms Theme::upload is vulnerable to Zip Slip leading to RCE","id":"CVE-2026-41203"},"products":["mako"],"published":"2026-04-23","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-20","vendors":["sqlalchemy"]},"summary":"Attackers can read arbitrary files by passing double-slash URIs to Mako's TemplateLookup, exposing sensitive data to anyone using the library.","url":"https://insights.sbomify.com/CVE-2026-41205/"}