{"id":"PYSEC-2026-1316","summary":"Dosage vulnerable to a Directory Traversal through crafted HTTP responses","details":"### Impact\n\nWhen downloadinging comic images, Dosage constructs target file names from different aspects of the remote comic (page URL, image URL, page content, etc.). While the basename is properly stripped of directory-traversing characters, the file extension is taken from the HTTP `Content-Type` header. This allows a remote attacker (or a Man-in-the-Middle, if the comic is served over HTTP) to write arbitrary files outside the target directory (if additional conditions are met). \n\n### Patches\n\nFixed in release 3.2. The [fix is small and self-contained](https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e), so distributors might elect to backport the fix to older versions.\n\n### Workarounds\n\nNo","aliases":["CVE-2025-64184","GHSA-4vcx-3pj3-44m7"],"modified":"2026-07-07T17:46:39.481876030Z","published":"2026-07-07T16:03:09.519278Z","references":[{"type":"WEB","url":"https://github.com/webcomics/dosage/security/advisories/GHSA-4vcx-3pj3-44m7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64184"},{"type":"WEB","url":"https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e"},{"type":"PACKAGE","url":"https://github.com/webcomics/dosage"},{"type":"PACKAGE","url":"https://pypi.org/project/dosage"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vcx-3pj3-44m7"}],"affected":[{"package":{"name":"dosage","ecosystem":"PyPI","purl":"pkg:pypi/dosage"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.2"}]}],"versions":["1.10","1.11","1.12","1.13","1.14","1.15","1.7","1.8","1.9","2.0","2.1","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","3.0","3.1"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/dosage/PYSEC-2026-1316.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}