CVE-2026-84987
Medium 5.4No known exploitationFix availablecode16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check
Vendor advisory: GHSA-g6f8-c3x9-jv7f
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 22% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
code16 Sharp is a Laravel-based framework for building content-management and administrative interfaces. Prior to 9.23.0, an authenticated attacker can call the autocomplete API with a request endpoint that contains the configured remote endpoint only as a substring. The endpoint validation uses an unanchored regular expression, so a different internal route can satisfy the check and be invoked server-side through the autocomplete request. The vulnerable path uses SharpFormAutocompleteRemoteField::setRemoteEndpoint(); applications using SharpFormAutocompleteRemoteField::setRemoteCallback() are not affected by this endpoint-selection flaw. This issue is fixed in version 9.23.0.
Weakness: CWE-20, CWE-625, CWE-918
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| composer | code16/sharp | from 10.0.0-beta.1 before 10.0.0-beta.4 | 10.0.0-beta.4 | GitHub Advisory Database |
| composer | code16/sharp | all versions before 9.23.0 | 9.23.0 | GitHub Advisory Database |
Timeline
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-g6f8-c3x9-jv7f (opens in a new tab)github-advisory
- https://github.com/code16/sharp/commit/339f89110f36d06eaad3f2b4bd048fa5424e5558 (opens in a new tab)
- https://github.com/code16/sharp/pull/748 (opens in a new tab)
- https://github.com/code16/sharp/releases/tag/v9.23.0 (opens in a new tab)
- https://github.com/code16/sharp/security/advisories/GHSA-g6f8-c3x9-jv7f (opens in a new tab)