{"id":"CVE-2026-84987","aliases":["CVE-2026-84987","GHSA-g6f8-c3x9-jv7f"],"related":[],"kind":"vulnerability","state":"published","title":"code16/sharp: Server-side request forgery through an unanchored autocomplete endpoint check","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nAn authenticated attacker can call the Autocomplete API with the configured endpoint as a substring to request another server-side route.\n\n### Patches\nThe 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.\n\n### Workarounds\nUse `SharpFormAutocompleteRemoteField::setRemoteCallback()` instead of `SharpFormAutocompleteRemoteField::setRemoteEndpoint()`.","format":"markdown","source":"ghsa"}],"published":"2026-11-12T18:21:00.000Z","modified":"2026-11-17T23:18:01.787Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-20","CWE-625","CWE-918"],"affected":[{"ranges":[{"version":"< 9.23.0","status":"affected"}],"vendor":"code16","product":"sharp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.23.0"}],"ecosystem":"Packagist","package":"code16/sharp","purl":"pkg:composer/code16/sharp","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0-beta.1","status":"affected","fixed":"10.0.0-beta.4"}],"ecosystem":"Packagist","package":"code16/sharp","purl":"pkg:composer/code16/sharp","source":"ghsa"}],"references":[{"url":"https://github.com/code16/sharp/security/advisories/GHSA-g6f8-c3x9-jv7f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/code16/sharp/pull/748","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/code16/sharp/commit/339f89110f36d06eaad3f2b4bd048fa5424e5558","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/code16/sharp/releases/tag/v9.23.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/code16/sharp","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/code16/sharp/tree/v10.0.0-beta.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-17T22:16:22.031Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-84987","url":"https://www.cve.org/CVERecord?id=CVE-2026-84987","licence":"CVE Terms of Use","modified":"2026-11-17T22:25:58.210Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g6f8-c3x9-jv7f","url":"https://github.com/advisories/GHSA-g6f8-c3x9-jv7f","licence":"CC-BY-4.0","modified":"2026-11-12T18:30:04.910Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-84987","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84987","licence":"Public domain","modified":"2026-11-17T23:18:01.787Z"}],"updatedAt":"2026-11-25T22:59:51.015Z","epss":{"score":0.00235,"percentile":0.15417,"date":"2026-12-01T12:00:22.000Z"}}