NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-84974: code16/sharp: Arbitrary class instantiation through the embed_key API parameter

mediumCVSS 3.1 5.4GHSA-h24v-f482-8cwf

Impact An authenticated attacker can instantiate any class in the PHP application by using the embedkey 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.

Published Nov 12, 2026

Affected packages

code16/sharp

Ecosystem
Composer (PHP)
Affected
< 9.23.0
Fixed in
9.23.0
Check
composer show code16/sharp

code16/sharp

Ecosystem
Composer (PHP)
Affected
>= 10.0.0-beta.1, < 10.0.0-beta.4
Fixed in
10.0.0-beta.4
Check
composer show code16/sharp

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to The4v1.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries