# CVE-2026-84987: code16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.30% (percentile 16, 2026-11-28)
- **CWE:** CWE-20, CWE-625, CWE-918
- **Aliases:** GHSA-g6f8-c3x9-jv7f
- **Published:** 2026-11-12T18:21:00.000Z
- **Modified:** 2026-11-17T23:18:01.787Z

## Who should check

- Projects that depend on Packagist package code16/sharp (\< 9.23.0)
- Anyone running code16 sharp \< 9.23.0

## 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.

## Affected and fixed versions

- Packagist `code16/sharp`: affected \< 9.23.0; fixed 9.23.0, 10.0.0-beta.4 (ghsa)
- code16 sharp: \< 9.23.0 (cvelist)

## Technologies

Composer packages

## Mitigation

- Upgrade code16/sharp to one of 9.23.0, 10.0.0-beta.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-84987. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-84987.md
Affected: code16/sharp < 9.23.0
Fixed in: 9.23.0, 10.0.0-beta.4

Steps:
1. Search this machine and project for code16/sharp (Packagist), code16 sharp: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-84987 being exploited?

There is no confirmed exploitation: CVE-2026-84987 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-84987?

Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-84987?

code16/sharp \< 9.23.0.

### Is there a fix for CVE-2026-84987?

Yes. Fixed in 9.23.0, 10.0.0-beta.4. Upgrade code16/sharp to one of 9.23.0, 10.0.0-beta.4 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-84987?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/code16/sharp/security/advisories/GHSA-g6f8-c3x9-jv7f>
- patch: <https://github.com/code16/sharp/pull/748>
- patch: <https://github.com/code16/sharp/commit/339f89110f36d06eaad3f2b4bd048fa5424e5558>
- other: <https://github.com/code16/sharp/releases/tag/v9.23.0>
- other: <https://github.com/code16/sharp/tree/v10.0.0-beta.4>
- other: <https://github.com/advisories/GHSA-g6f8-c3x9-jv7f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-84987>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-g6f8-c3x9-jv7f> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-84987> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-84987>
