MEDIUM · CVSS 3.1 5.4 EPSS 0.4% · 31th percentile CWE-470

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityNone
IntegrityLow
AvailabilityLow

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
### Impact An authenticated attacker can instantiate any class in the PHP application by using the `embed_key` parameter across multiple API endpoints. The instantiation is performed by the Laravel container. As a result, the `__construct()` method of the class is called and all constructor dependencies are resolved. The attacker cannot specify parameter values and cannot call any arbitrary method. ### Patches The problem has been patched in 9.23.0 and pre-release version 10.0.0-beta.4. An additional check was added to verify that `embed_key` is a class extending `SharpFormEditorEmbed` before any instantiation. ### Workarounds No known workarounds.

References

Source records: GHSA-h24v-f482-8cwf (OSV.dev) · EPSS by FIRST, 2026-11-26.