Skip to main content
VulnerabilityPublished

CVE-2026-126604: sanitize-filename (PyPI) < 1.2.1 is vulnerable to path traversal attacks

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-126604· High 7.4

Not known to be exploited · CVSS 7.4 High : upgrade to 1.2.1 soon.

Data as of 4 Dec 2026, 02:14 UTC

CVSS 3.1 base score
7.4High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitLab)CVSS 3.17.4
Patch
Available – fixed in 1.2.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Dec 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade sanitize-filename to 1.2.1.

Affected software

ProductAffectedFixed in
J++ / Newsworthysanitize-filenameAffected
  • <1.2.1
Fixed in
  • 1.2.1

AI-suggested

A fix is available in sanitize-filename version 1.2.1 or later. Users should upgrade to version 1.2.1 or newer to remediate this vulnerability. No other mitigation is indicated in the advisory.

Description

The sanitize-filename Python package versions prior to 1.2.1 contain a path traversal vulnerability. The sanitize() function removes blacklisted characters before Unicode normalization, allowing certain Unicode characters that resemble path separators to bypass filtering. This can lead to sanitized filenames that are absolute paths, enabling attackers to manipulate file paths.

References

Community reviews

Loading reviews…