Live threats

All CVEs / Code16

CVE-2026-33686Code16 Sharp

High 8.8

Priority
53
CVSS 3.1
8.8
EPSS
—
Auth required
Yes
Published
Mar 26, 2026
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

Sharp is a content management framework built for Laravel as a package. Versions prior to 9.20.0 have a path traversal vulnerability in the FileUtil class. The application fails to sanitize file extensions properly, allowing path separators to be passed into the storage layer. In `src/Utils/FileUtil.php`, the `FileUtil::explodeExtension()` function extracts a file's extension by splitting the filename at the last dot. This issue has been patched in version 9.20.0 by properly sanitizing the extension using `pathinfo(PATHINFO_EXTENSION)` instead of `strrpos()`, alongside applying strict regex replacements to both the base name and the extension.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sharp.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist code16/sharp < 9.20.0 9.20.0 composer require "code16/sharp:^9.20.0"

Per OSV / GitHub Advisories (GHSA-9ffq-6457-8958). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
code16sharp< 9.20.0

Official sources

References

Links published by the sources. Open them with care.