Dosage vulnerable to a Directory Traversal through crafted HTTP responses
Impact
When 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).
Patches
Fixed in release 3.2. The fix is small and self-contained, so distributors might elect to backport the fix to older versions.
Workarounds
No
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | dosage | < 3.2 | 3.2 |
References
- https://github.com/webcomics/dosage/security/advisories/GHSA-4vcx-3pj3-44m7
- https://nvd.nist.gov/vuln/detail/CVE-2025-64184
- https://github.com/webcomics/dosage/commit/336a9684191604bc49eed7296b74bd582151181e
- https://github.com/webcomics/dosage
- https://pypi.org/project/dosage
- https://github.com/advisories/GHSA-4vcx-3pj3-44m7
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-22- Platform
- Python (PyPI)
- Package
dosage- Disclosed
- 04.11.2025
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1316 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-4vcx-3pj3-44m7 - CC BY 4.0
Vulnerability history: dosage
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 11.2025 06.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 1
Disclosures per year
- 2025: 1
- 2026: 1
-
Dosage vulnerable to a Directory Traversal through crafted HTTP responses this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.