Skip to content
Security advisoryCVE-2026-84987

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

Moderate5.4Published Modified Original advisory

As published by the sources

Affected packages

  • code16/sharp
    Affected<9.23.0 || >=10.0.0-beta.1,<10.0.0-beta.4
    Fixed in9.23.010.0.0-beta.4

Derived from the fixed versions above

What to do

  1. Upgrade code16/sharp to the fixed version in your release line: 9.23.0, 10.0.0-beta.4.

    composer update code16/sharp --with-dependencies

To see which version you have installed, run composer show vendor/package. Running composer audit lists the known advisories that match your installed versions.

Quoted from the original advisory

Details

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

laravel.now is an independent community project. It is not affiliated with, endorsed by, sponsored by, or in any way officially connected to Laravel, Laravel LLC, Taylor Otwell, or the Laravel framework maintainers. Laravel is a trademark of Taylor Otwell. All other trademarks belong to their respective owners.

This site is operated by the makers of Lockhound. Links to Lockhound are promotional.