code16/sharp: Arbitrary class instantiation through the embed_key API parameter
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | code16/sharp | < 9.23.0, >= 10.0.0-beta.1, < 10.0.0-beta.4 | 9.23.0, 10.0.0-beta.4 |
References
- https://github.com/code16/sharp/security/advisories/GHSA-h24v-f482-8cwf
- https://github.com/code16/sharp/pull/750
- https://github.com/code16/sharp/commit/dfafb44b11574e621bf0785f02c32b9866ab9923
- https://github.com/code16/sharp
- https://github.com/code16/sharp/releases/tag/v9.23.0
- https://github.com/code16/sharp/tree/v10.0.0-beta.4
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L- Weakness (CWE)
CWE-470- Platform
- Composer
- Package
code16/sharp- Disclosed
- 12.11.2026
- Updated
- 12.11.2026 20:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-h24v-f482-8cwf - CC BY 4.0
Vulnerability history: code16/sharp
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 10
- First → latest
- 10.2025 11.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 5
- Medium 5
Disclosures per year
- 2025: 2
- 2026: 8
-
code16/sharp: Arbitrary class instantiation through the embed_key API parameter this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.