Medium severity5.4NVD Advisory· Published Nov 12, 2026· Updated Nov 12, 2026
code16/sharp: Arbitrary class instantiation through the embed_key API parameter
CVE-2026-84974
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.
Affected products
1Patches
Vulnerability mechanics
References
6- github.com/advisories/GHSA-h24v-f482-8cwfghsaADVISORY
- github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923ghsa
- github.com/code16/sharp/pull/750ghsa
- github.com/code16/sharp/releases/tag/v9.23.0ghsa
- github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwfghsa
- github.com/code16/sharp/tree/v10.0.0-beta.4ghsa
News mentions
0No linked articles in our index yet.