Search

Find a vulnerability

Search criteria

    2 vulnerabilities found for sanitize-filename by J++ / Newsworthy

    CVE-2026-126604 (GCVE-0-2026-126604)

    Vulnerability from nvd – Published: 2026-12-03 22:33 – Updated: 2026-12-03 22:33
    VLAI
    Title
    Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename
    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")`
    CWE
    • CWE-180 - Incorrect Behavior Order: Validate Before Canonicalize
    Assigner
    GitLab CNA under the mitre root
    CNA scorecard C 74/100 over 386 records in the last 180 days details
    Impacted products
    Vendor Product Version
    J++ / Newsworthy sanitize-filename Affected: 0 , < 1.2.1 (semver)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "sanitize-filename",
              "repo": "https://gitlab.com/jplusplus/sanitize-filename",
              "vendor": "J++ / Newsworthy",
              "versions": [
                {
                  "lessThan": "1.2.1",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Alex Brumen (@brumens2)"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\")`"
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 7.4,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-180",
                  "description": "CWE-180: Incorrect Behavior Order: Validate Before Canonicalize",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-12-03T22:33:41.670Z",
            "orgId": "ceab7361-8a18-47b1-92ba-4d7d25f6715a",
            "shortName": "GitLab"
          },
          "references": [
            {
              "url": "https://gitlab.com/jplusplus/sanitize-filename/-/tags/1.2.1"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to sanitize-filename 1.2.1 or later."
            }
          ],
          "title": "Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "ceab7361-8a18-47b1-92ba-4d7d25f6715a",
        "assignerShortName": "GitLab",
        "cveId": "CVE-2026-126604",
        "datePublished": "2026-12-03T22:33:41.670Z",
        "dateReserved": "2026-11-11T07:24:37.518Z",
        "dateUpdated": "2026-12-03T22:33:41.670Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-126604 (GCVE-0-2026-126604)

    Vulnerability from cvelistv5 – Published: 2026-12-03 22:33 – Updated: 2026-12-03 22:33
    VLAI
    Title
    Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename
    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")`
    CWE
    • CWE-180 - Incorrect Behavior Order: Validate Before Canonicalize
    Assigner
    GitLab CNA under the mitre root
    CNA scorecard C 74/100 over 386 records in the last 180 days details
    Impacted products
    Vendor Product Version
    J++ / Newsworthy sanitize-filename Affected: 0 , < 1.2.1 (semver)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "sanitize-filename",
              "repo": "https://gitlab.com/jplusplus/sanitize-filename",
              "vendor": "J++ / Newsworthy",
              "versions": [
                {
                  "lessThan": "1.2.1",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Alex Brumen (@brumens2)"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\")`"
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "HIGH",
                "attackVector": "NETWORK",
                "availabilityImpact": "NONE",
                "baseScore": 7.4,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-180",
                  "description": "CWE-180: Incorrect Behavior Order: Validate Before Canonicalize",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-12-03T22:33:41.670Z",
            "orgId": "ceab7361-8a18-47b1-92ba-4d7d25f6715a",
            "shortName": "GitLab"
          },
          "references": [
            {
              "url": "https://gitlab.com/jplusplus/sanitize-filename/-/tags/1.2.1"
            }
          ],
          "solutions": [
            {
              "lang": "en",
              "value": "Upgrade to sanitize-filename 1.2.1 or later."
            }
          ],
          "title": "Incorrect Behavior Order: Validate Before Canonicalize in sanitize-filename"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "ceab7361-8a18-47b1-92ba-4d7d25f6715a",
        "assignerShortName": "GitLab",
        "cveId": "CVE-2026-126604",
        "datePublished": "2026-12-03T22:33:41.670Z",
        "dateReserved": "2026-11-11T07:24:37.518Z",
        "dateUpdated": "2026-12-03T22:33:41.670Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }