EnvMap GitHub

CVE-2026-126604

Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename

EPSS 0.67%Received

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

In the words of the organisation that published it (GitLab).

Severity

  • 7.4 High · CVSS 3.1 from cve@gitlab.com · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected

  • J++ / Newsworthy sanitize-filename: before 1.2.1

as the publisher (GitLab) lists them.

Likelihood of exploitation

FIRST's EPSS gives a 0.67% chance of exploitation in the next 30 days, higher than 53% of all CVEs (as of 4 December 2026).

Weakness

CWE-180

References

Record

Published00:19 UTC, 4 December 2026
Last changed00:19 UTC, 4 December 2026
NVD statusReceived
Published byGitLab

CVE-2026-126604 on NVD · on CVE.org · Security Briefing

Follow it

Add the feed to a feed reader and new items arrive there as they are published, with no account here and no email.

Add to Feedly Add to Inoreader

Any other reader: paste https://envmap.tech/security/feed.xml

Where this comes from

Nothing here is written by an AI, summarised or rewritten: a headline is its newsroom's own and opens its story. A description is in the words of the organisation that published the CVE; a score says whose it is, NVD's or the publisher's; a CVE nobody has scored yet says so. A CVE that is rejected comes off every list. When a source does not answer, the page keeps the last answer it gave and says since when.

How to read it

EnvMap is a free, open-source DevOps control plane that you run yourself; its Security page brings your scanners' findings into one place. See what it does.