{"id":"CVE-2026-126604","aliases":["EUVD-2026-143764","GHSA-6v59-65x2-cq7r"],"status":"published","title":"Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename","description":"sanitize-filename (PyPI) \u003c 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":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00668,"percentile":0.53298,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-180"],"published":"2026-12-03T22:33:41.67Z","modified":"2026-12-04T21:01:42Z","products":[{"vendor":"j++ / newsworthy","product":"sanitize-filename"}],"references":[{"url":"https://gitlab.com/jplusplus/sanitize-filename/-/tags/1.2.1","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-126604","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6v59-65x2-cq7r"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126604.json","tags":["advisory"]},{"url":"https://gitlab.com/jplusplus/sanitize-filename","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-126604","title":"Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename","description":"sanitize-filename (PyPI) \u003c 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\")`","status":"published","published":"2026-12-03T22:33:41.67Z","modified":"2026-12-03T22:33:41.67Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-180"],"updated_at":"2026-12-03T22:44:53.460229Z"}],"euvd":[{"id":"EUVD-2026-143764","description":"sanitize-filename (PyPI) \u003c 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\")`","status":"published","published":"2026-12-04T00:31:32Z","modified":"2026-12-04T00:31:32Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-12-04T02:36:17.98509Z"}],"ghsa":[{"id":"GHSA-6v59-65x2-cq7r","title":"sanitize-filename (PyPI) \u003c 1.2.1 is vulnerable to path traversal attacks. sanitize() removed...","description":"sanitize-filename (PyPI) \u003c 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\")`","status":"published","published":"2026-12-04T00:31:32Z","modified":"2026-12-04T00:31:37Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-180"],"updated_at":"2026-12-04T00:52:28.135278Z"}],"nvd":[{"id":"CVE-2026-126604","description":"sanitize-filename (PyPI) \u003c 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\")`","status":"published","published":"2026-12-04T00:19:10.997Z","modified":"2026-12-04T00:19:10.997Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-180"],"updated_at":"2026-12-04T00:25:53.879746Z"}],"osv":[{"id":"CVE-2026-126604","title":"Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename","description":"sanitize-filename (PyPI) \u003c 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\")`","status":"published","published":"2026-12-03T22:33:41.67Z","modified":"2026-12-04T21:01:42.365975823Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-180"],"updated_at":"2026-12-04T21:29:37.811373Z"}]}}
