PT-2026-167784
CVE-2026-126604
·
Published
2026-12-03
·
Updated
2026-12-04
Description by
CVSS 3.1
7.4
HighMetricsAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
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..uFF0FetcuFF0Fpasswd") Found an issue in the description? Have something to add? Feel free to write us 👾