CVE-2026-84974: code16/sharp: Arbitrary class instantiation through the embed_key API parameter
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-h24v-f482-8cwf
Summary
An arbitrary class instantiation vulnerability exists in the code16/sharp package due to improper handling of the embed_key API parameter. Authenticated users and administrators of PHP applications utilizing vulnerable versions should update their software immediately.
Who is affected
Authenticated attackers can instantiate any class in the PHP application via the Laravel container by manipulating the embed_key parameter across multiple API endpoints. This triggers the __construct() method of the targeted class and resolves all constructor dependencies, potentially leading to low integrity and availability impacts.
Exploitability
The vulnerability is exploitable over the network with low attack complexity, requiring low privileges and no user interaction, resulting in a CVSS 3.1 base score of 5.4. It currently carries an EPSS score of 0.004 (percentile 0.377) and is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the packagist code16/sharp package to version 9.23.0 or version 10.0.0-beta.4.
- Verify that the application's dependency manager has successfully applied the updated package version.
How to check your project
- Inspect composer.lock to check if the installed version of code16/sharp falls within the range introduced at 0 and fixed in 9.23.0, or introduced at 10.0.0-beta.1 and fixed in 10.0.0-beta.4.
- Review project dependency configurations to identify the presence of the code16/sharp package.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Packagist | code16/sharp |
>= 0, < 9.23.0 | 9.23.0 | composer require "code16/sharp:>=9.23.0" |
| Packagist | code16/sharp |
>= 10.0.0-beta.1, < 10.0.0-beta.4 | 10.0.0-beta.4 | composer require "code16/sharp:>=10.0.0-beta.4" |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | Low |
FAQ
What causes the CVE-2026-84974 vulnerability?
It is caused by improper instantiation of classes through the embed_key API parameter without validating that the class extends SharpFormEditorEmbed.
What are the fixed versions for this vulnerability?
The issue has been patched in versions 9.23.0 and 10.0.0-beta.4 of the code16/sharp package.
Are there any known workarounds available?
No known workarounds are available; updating the package to the fixed versions is required.
Original advisory description
References
- WEB https://github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwf
- WEB https://github.com/code16/sharp/pull/750
- WEB https://github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923
- PACKAGE https://github.com/code16/sharp
- WEB https://github.com/code16/sharp/releases/tag/v9.23.0
- WEB https://github.com/code16/sharp/tree/v10.0.0-beta.4
Source records: GHSA-h24v-f482-8cwf (OSV.dev) · EPSS by FIRST, 2026-11-26.