Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. code16/sharp
  4. ›
  5. CVE-2026-33686

CVE-2026-33686: Sharp is Vulnerable to Path Traversal via Unsanitized Extension in FileUtil

March 25, 2026 (updated March 27, 2026)

A path traversal vulnerability exists in the FileUtil class of the code16/sharp package. The application fails to sanitize file extensions properly, allowing path separators to be passed into the storage layer.

References

  • github.com/advisories/GHSA-9ffq-6457-8958
  • github.com/code16/sharp
  • github.com/code16/sharp/pull/715
  • github.com/code16/sharp/security/advisories/GHSA-9ffq-6457-8958
  • nvd.nist.gov/vuln/detail/CVE-2026-33686

Code Behaviors & Features

Detect and mitigate CVE-2026-33686 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 9.20.0

Fixed versions

  • 9.20.0

Solution

Upgrade to version 9.20.0 or above.

Impact 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/code16/sharp/CVE-2026-33686.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:39 +0000.