CVE-2026-126604: sanitize-filename (PyPI) < 1.2.1 is vulnerable to path traversal attacks
Source GCVE Database
Not known to be exploited · CVSS 7.4 High : upgrade to 1.2.1 soon.
Data as of 4 Dec 2026, 02:14 UTC
Thin evidence
One scorer or none| CNA (GitLab) | CVSS 3.1 | 7.4 |
|---|
- Patch
- Available – fixed in 1.2.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade sanitize-filename to 1.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| J++ / Newsworthysanitize-filename | Affected
| Fixed in
|
AI-suggested
A fix is available in sanitize-filename version 1.2.1 or later. Users should upgrade to version 1.2.1 or newer to remediate this vulnerability. No other mitigation is indicated in the advisory.
Description
The sanitize-filename Python package versions prior to 1.2.1 contain a path traversal vulnerability. The sanitize() function removes blacklisted characters before Unicode normalization, allowing certain Unicode characters that resemble path separators to bypass filtering. This can lead to sanitized filenames that are absolute paths, enabling attackers to manipulate file paths.