CVE-2026-126604
HIGH 7.4CVSS 3.1Incorrect 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed 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)