Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-84987 GHSA-g6f8-c3x9-jv7f

code16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check

Published Nov 12, 2026 · Updated Nov 12, 2026 · Assigned by GHSA

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

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist code16/sharp < 9.23.0 9.23.0 GHSA-g6f8-c3x9-jv7f
Packagist code16/sharp >= 10.0.0-beta.1, < 10.0.0-beta.4 10.0.0-beta.4 GHSA-g6f8-c3x9-jv7f

References