MEDIUM · CVSS 3.1 5.4 EPSS 0.3% · 16th percentile CWE-625CWE-918

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Privileges requiredLow
User interactionNone
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityNone

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
### 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()`.

References

Source records: GHSA-g6f8-c3x9-jv7f (OSV.dev) · EPSS by FIRST, 2026-11-26.