Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| J++ / Newsworthy | sanitize-filename | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| J++ / Newsworthy | Sanitize-filename |
|
Vendor Solution
Upgrade to sanitize-filename 1.2.1 or later.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.668% probability within 30 days)
Key SSVC decision points have not yet been added.
| Link | Providers |
|---|---|
| https://gitlab.com/jplusplus/sanitize-filename/-/tags/1.2.1 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
J++ / Newsworthy
J++ / Newsworthy sanitize-filename |
|
| Vendors & Products |
J++ / Newsworthy
J++ / Newsworthy sanitize-filename |
| Type | Values Removed | Values Added |
|---|---|---|
| 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")` | |
| Title | Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename | |
| Weaknesses | CWE-180 | |
| References |
| |
| Metrics |
cvssV3_1
|