Security mailing lists by PureSourceCode

CVE-2026-126604

HIGH 7.4CVSS 3.1

Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename

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

Published
4 Dec 2026
Last modified
4 Dec 2026
Assigned by
cve@gitlab.com
NVD status
Received
Weakness
CWE-180
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD cve@gitlab.com (Secondary) CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CVE List GitLab CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List J++ / Newsworthy sanitize-filename < 1.2.1 1.2.1

References

History

  • 4 Dec 2026 01:56 UTC · NVD: first stored (published 4 Dec 2026)
  • 3 Dec 2026 22:56 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.