Medium

code16/sharp: Arbitrary class instantiation through the embed_key API parameter

  • Disclosed: 12.11.2026
  • Updated: 12.11.2026 20:17

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.

PlatformPackageVulnerable versionsFixed 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

CVSS score 5.4/10
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.

All (10) in the archive
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

  1. 2025: 2
  2. 2026: 8
Severity:
  1. code16/sharp: Arbitrary class instantiation through the embed_key API parameter this entry
    Medium · 5.4 CVE-2026-84974 < 9.23.0, >= 10.0.0-beta.1, < 10.0.0-beta.4 9.23.0, 10.0.0-beta.4
  2. High · 7.3 CVE-2026-61823 < 9.22.5 9.22.5

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.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.