CVE-2026-126604: J++ / Newsworthy sanitize-filename Path Traversal

CVE-2026-126604

NVDCVSS scored by cve@gitlab.com

Vulnerability 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 Level
HIGH(7.4)
Published Date
Dec 4, 2026
Last Modified
Dec 4, 2026
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The product validates input before it is canonicalized, which prevents the product from detecting data that becomes invalid after the canonicalization step.
CVSS v3.1 Base Metrics — Score 7.4 (HIGH)
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • J++ / Newsworthy sanitize-filename < 1.2.1
Patched Versions
  • J++ / Newsworthy sanitize-filename 1.2.1

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run J++ / Newsworthy sanitize-filename and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Dec 4, 2026Published
  • Dec 4, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new J++ / Newsworthy sanitize-filename CVEsYou are reading CVE-2026-126604. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 4, 2026 01:10 UTC