Laravel: Temporary signed URL expiration bypass via unencoded numeric-keyed route parameters
🔗 CVE IDs covered (1)
📋 Description
Impact
When an application passes attacker-influenced, numeric-keyed parameters (for example a request's query array) to temporarySignedRoute() or signedRoute(), and those parameters do not fill a route placeholder, Laravel appended their values to the query string without URL encoding. An attacker can use this to add a second expires field to the signed URL. The signature covers that field, but request parsing reads it as the authoritative value, so the signed URL is treated as never expiring. Exploitation requires the application to forward such input into signed URL generation.
Patches
This issue has been patched in Laravel 12.72.0 and 13.41.0, which URL-encode numeric-keyed query parameters: https://github.com/laravel/framework/pull/62401. Users should upgrade to one of these versions or later.
Workarounds
Do not pass request-derived arrays to signed route generation. Pass only explicitly selected, string-keyed parameters.
🎯 Affected products2
- composer/laravel/framework:< 12.72.0
- composer/laravel/framework:>= 13.0.0, < 13.41.0
🔗 References (8)
- https://github.com/laravel/framework/security/advisories/GHSA-6rv8-qj5v-p8ch
- https://nvd.nist.gov/vuln/detail/CVE-2026-142647
- https://github.com/laravel/framework/pull/62401
- https://github.com/laravel/framework/commit/9c4b57b7d53a5f2f69874654f2b430d3b9238f82
- https://github.com/laravel/framework/commit/aa9deaa76986a3745e0a924db9d09e1ca4e3f70d
- https://github.com/laravel/framework/releases/tag/v12.72.0
- https://github.com/laravel/framework/releases/tag/v13.41.0
- https://github.com/advisories/GHSA-6rv8-qj5v-p8ch