CVE-2026-126604 — J++ / Newsworthy sanitize-filename
Summary
sanitize-filename (PyPI) < 1.2.1 is vulnerable to path traversal attacks. sanitize() removed blacklisted characters before applying Unicode NFKD normalization. Characters such as FULLWIDTH SOLIDUS (U+FF0F), FULLWIDTH REVERSE SOLIDUS (U+FF3C) and SMALL REVERSE SOLIDUS (U+FE68) passed the blacklist and became real path separators in the returned value. An attacker who controls the input filename could make sanitize() return an absolute path. Example, `sanitize("\uFF0F..\uFF0F..\uFF0F..\uFF0Fetc\uFF0Fpasswd")`
Severity breakdown
High · 7.4
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality and integrity, none on availability
Weakness
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| J++ / Newsworthy sanitize-filename | < 1.2.1 | 1.2.1 |
References by type
Other references
Affected
- J++ / Newsworthy sanitize-filename
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-126604?
sanitize-filename (PyPI) < 1.2.1 is vulnerable to path traversal attacks. sanitize() removed blacklisted characters before applying Unicode NFKD normalization. Characters such as FULLWIDTH SOLIDUS (U+FF0F), FULLWIDTH REVERSE SOLIDUS (U+FF3C) and SMALL REVERSE SOLIDUS (U+FE68) passed the blacklist and became real path separators in the returned value.
How severe is CVE-2026-126604?
CVE-2026-126604 has a CVSS 3.1 base score of 7.4 (high), from the CNA (gitlab.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-126604 being exploited?
Not as far as is known: CVE-2026-126604 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026.
Which versions are affected by CVE-2026-126604?
J++ / Newsworthy sanitize-filename < 1.2.1 (fixed in 1.2.1).
How do I fix CVE-2026-126604?
Update to a fixed release: J++ / Newsworthy sanitize-filename 1.2.1.
Timeline & sources
References
Related vulnerabilities & news
- GHSA-m6fh-58r7-x697 / CVE-2026-14534 — Fickling safety checks can miss dangerous standard-library imports
- Trail of Bits fickling: shared analysis state disables the MLAllowlist check (CVE-2026-14535)
- CVE-2026-132092 — djangoproject Django
- Django Patches Seven CVEs in December 2026 Security Release
- Ubuntu Advisory USN-9335-1 Fixes Certificate Validation Flaw in python-scciclient