StraitOfVuln
Latest / CVE-2026-126604

CVE-2026-126604

HighCVSS 7.4 (v3.1)Received
CVE.org ↗NVD ↗

Description

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")`

Details

CVE ID
CVE-2026-126604
Published / updated
04 Dec 2026, 00:19 UTC · last modified 04 Dec 2026, 00:19 UTC
Severity
HIGH
CVSS score
7.4 · v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N · Attack vector: Network
Affected vendor
J++ / Newsworthy
Affected products
sanitize-filename
Affected versions
sanitize-filename: before 1.2.1
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
sanitize-filename 1.2.1
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
—
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
cve@gitlab.com