CVE-2026-84987: code16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check
Published 2026-11-12 · Updated 2026-11-12 · Also known as GHSA-g6f8-c3x9-jv7f
Summary
The code16/sharp package contains a Server-Side Request Forgery (SSRF) vulnerability caused by unanchored regex validation in the Autocomplete API. Developers using the Sharp framework must upgrade to the specified patched versions to prevent unauthorized server-side route access.
Who is affected
Authenticated attackers can exploit this flaw by manipulating the Autocomplete API to access restricted server-side routes via substring injection. The vulnerability affects all versions of code16/sharp prior to 9.23.0, as well as specific 10.0.0-beta iterations. Successful exploitation requires an authenticated session and targets endpoints using the vulnerable remote endpoint configuration.
Exploitability
The vulnerability is rated as medium severity with a CVSS 3.1 base score of 5.4, indicating low attack complexity that does not require user interaction. The EPSS score of 0.003 suggests a low current probability of exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade code16/sharp to version 9.23.0 or later.
- If using version 10.0.0, upgrade to at least 10.0.0-beta.4.
- Transition from using SharpFormAutocompleteRemoteField::setRemoteEndpoint() to SharpFormAutocompleteRemoteField::setRemoteCallback() as a workaround.
How to check your project
- Inspect the composer.lock file for 'code16/sharp' to verify if the version is below 9.23.0.
- Check source code for usages of SharpFormAutocompleteRemoteField::setRemoteEndpoint() which are susceptible to the unanchored endpoint validation.
Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Packagist | code16/sharp |
>= 0, < 9.23.0 | 9.23.0 | composer require "code16/sharp:>=9.23.0" |
| Packagist | code16/sharp |
>= 10.0.0-beta.1, < 10.0.0-beta.4 | 10.0.0-beta.4 | composer require "code16/sharp:>=10.0.0-beta.4" |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | Low |
| Integrity | Low |
| Availability | None |
FAQ
Is this vulnerability actively exploited in the wild?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
What is the root cause of the SSRF?
The root cause is an unanchored regular expression used to verify the endpoint in the Autocomplete API, which allows attackers to inject substrings to reach unintended server-side routes.
Are there any temporary mitigations if I cannot upgrade immediately?
Yes, you can mitigate the risk by replacing the use of SharpFormAutocompleteRemoteField::setRemoteEndpoint() with SharpFormAutocompleteRemoteField::setRemoteCallback().
Original advisory description
References
- WEB https://github.com/code16/sharp/security/advisories/GHSA-g6f8-c3x9-jv7f
- WEB https://github.com/code16/sharp/pull/748
- WEB https://github.com/code16/sharp/commit/339f89110f36d06eaad3f2b4bd048fa5424e5558
- PACKAGE https://github.com/code16/sharp
- WEB https://github.com/code16/sharp/releases/tag/v9.23.0
- WEB https://github.com/code16/sharp/tree/v10.0.0-beta.4
Source records: GHSA-g6f8-c3x9-jv7f (OSV.dev) · EPSS by FIRST, 2026-11-26.