Advisory

GHSA-h24v-f482-8cwf

Also known as: CVE-2026-84974

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-11-12 18:18 UTC
Modified
2026-11-12 18:30 UTC

Affected packages and fixes

code16/sharp

Packagist · All systems

Affected

  • introduced 0, fixed 9.23.0 (ecosystem)

Fixed versions

9.23.0

Fix

The export has no generic command for this ecosystem.

code16/sharp

Packagist · All systems

Affected

  • introduced 10.0.0-beta.1, fixed 10.0.0-beta.4 (ecosystem)

Fixed versions

10.0.0-beta.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences