Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Python

CVE-2026-126604 — J++ / Newsworthy sanitize-filename

High · CVSS 7.4 First seen December 04, 2026
PythonWebVulnerabilities

Summary

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

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

High · 7.4 CVSS 3.1 base score from the CNA (gitlab.com)

An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Attack from
the network (remotely)
Attack complexity
high (only works under specific conditions)
Login needed
no
User action needed
no
Scope
stays within the vulnerable component
Impact
high on confidentiality and integrity, none on availability

Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Weakness

Affected and fixed versions

ProductAffected versionsFixed in
J++ / Newsworthy sanitize-filename< 1.2.11.2.1

From the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Other references

Details from NVD (public domain).

Affected

  • J++ / Newsworthy sanitize-filename

What to do

  • Check whether you run an affected product or version and apply the vendor's update or mitigation.
  • Follow the vendor advisory and the references below for fixed versions and workarounds.

Frequently asked questions

What is CVE-2026-126604?

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.

How severe is CVE-2026-126604?

CVE-2026-126604 has a CVSS 3.1 base score of 7.4 (high), from the CNA (gitlab.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.

Is CVE-2026-126604 being exploited?

Not as far as is known: CVE-2026-126604 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026.

Which versions are affected by CVE-2026-126604?

J++ / Newsworthy sanitize-filename < 1.2.1 (fixed in 1.2.1).

How do I fix CVE-2026-126604?

Update to a fixed release: J++ / Newsworthy sanitize-filename 1.2.1.

Timeline & sources

References

Related vulnerabilities & news