CVE-2026-84987: code16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check
Impact An authenticated attacker can call the Autocomplete API with the configured endpoint as a substring to request another server-side route. Patches The problem has been patched in 9.23.0 and pre-release version 10.0.0-beta.4. The regex verifying the endpoint has been anchored to forbid substring injection.
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 call the Autocomplete API with the configured endpoint as a substring to request another server-side route.
Patches
The problem has been patched in 9.23.0 and pre-release version 10.0.0-beta.4. The regex verifying the endpoint has been anchored to forbid substring injection.
Workarounds
Use SharpFormAutocompleteRemoteField::setRemoteCallback() instead of SharpFormAutocompleteRemoteField::setRemoteEndpoint().
Credited to The4v1.
References
- https://github.com/code16/sharp/security/advisories/GHSA-g6f8-c3x9-jv7f
- https://github.com/code16/sharp/pull/748
- https://github.com/code16/sharp/commit/339f89110f36d06eaad3f2b4bd048fa5424e5558
- https://github.com/code16/sharp/releases/tag/v9.23.0
- https://github.com/code16/sharp/tree/v10.0.0-beta.4
- https://github.com/advisories/GHSA-g6f8-c3x9-jv7f
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) entriesCVE-2026-84974
code16/sharp: Arbitrary class instantiation through the embed_key API parameter
medium5.4Nov 12, 2026CVE-2026-61823
code16 Sharp vulnerable to stored XSS via iframe srcdoc Attribute
high7.3Sep 25, 2026CVE-2026-61825
code16/sharp has a stored XSS via data-html-content Sanitizer Bypass
high8.7Sep 25, 2026CVE-2026-53634
Sharp Missing Authorization Check in Quick Creation Command Endpoints
medium4.3Jul 8, 2026CVE-2026-44692
Authenticated Sharp users can download unrelated Laravel Storage objects through the generic download endpoint
high7.7May 15, 2026CVE-2026-33686
Sharp is Vulnerable to Path Traversal via Unsanitized Extension in FileUtil
high8.8Mar 25, 2026
