Executive summary
CVE-2026-142647 is a signed-route expiration flaw in Laravel. It does not involve theft of a signing key or forgery of an invalid signature. Instead, an attacker can influence how a signed URL is serialized, causing a duplicate expires field to appear in a URL that Laravel itself signs. When the resulting request is parsed, the duplicate field can override the intended expiration and make the URL appear valid indefinitely.
The flaw only becomes exploitable when an application forwards attacker-influenced, numeric-keyed data into temporarySignedRoute() or signedRoute() without ensuring that the data is safely represented or restricted. Laravel 12.72.0 and 13.41.0 contain the fix.
Affected systems
The advisory identifies the following affected release lines:
- Laravel versions before
12.72.0
- Laravel versions before
13.41.0
Fixed releases are:
12.72.0
13.41.0
The vulnerable behavior is conditional. It applies when an application uses temporarySignedRoute() or signedRoute() and passes suitable request-derived data into either method. An entire request query array is one possible source of the affected numeric-keyed parameters.
This is therefore not an unconditional compromise of every Laravel deployment. The relevant application surface consists of code paths that generate signed URLs from attacker-influenced input.
Root cause
The issue combines improper query-string encoding with ambiguous handling of duplicate parameters:
- An attacker supplies numeric-keyed input, such as elements taken from a request query array.
- Application code forwards that input to
temporarySignedRoute()orsignedRoute().
- The values do not fill a route placeholder, so Laravel treats them as additional query parameters.
- These values are appended to the query string without appropriate URL encoding.
- A crafted value can introduce a second
expiresfield instead of remaining one opaque parameter value.
- Laravel calculates the signature after constructing the malformed query string. The resulting URL therefore receives a valid Laravel signature despite containing the attacker's injected field.
- During request parsing, the duplicate
expiresfield is interpreted as the authoritative expiration value, causing the signed URL to be treated as never expiring.
The attacker does not need to recover the signing key or bypass cryptographic verification. The application signs the attacker-influenced representation after the ambiguous query structure has been assembled.
Attack vector and impact
Exploitation requires an application integration that forwards attacker-controlled numeric-keyed parameters into signed URL generation. Once that condition is met, a crafted request can produce a signed URL containing multiple expiration fields and defeat the intended link lifetime.
The direct impact is a loss of expiration enforcement. A link intended to expire after a defined period may remain usable indefinitely. If the signed route grants access to sensitive data or authorizes a state-changing operation, the attacker may retain that access beyond the intended authorization window.
The available advisory does not indicate code execution, memory corruption, signing-key compromise, or a complete compromise of the Laravel framework. Its real-world impact depends on what the affected route protects and whether an application exposes the required integration pattern.
Severity assessment
CVE-2026-142647 is rated medium with a CVSS score of 4.8 in the supplied CVE-specific intelligence. The CVSS vector string is not included in the available context, so its individual Attack Vector, Privileges Required, User Interaction, Scope, and other components cannot be stated reliably.
The accompanying risk-assessment metadata labels the issue as informational and assigns a technical score of 0/100 because no vulnerability records were linked to that assessment. That pipeline classification conflicts with the CVE-specific medium rating and should not be treated as evidence that the vulnerability itself has no security impact.
The practical risk is conditional rather than universal. An attacker must locate an application endpoint that forwards suitable request data into signed-route generation. The advisory describes a workable technique, but the supplied intelligence does not report exploitation in the wild, a public exploit implementation, malware use, or an active campaign. Exploitation in the wild therefore cannot be established from the available information.
Mitigation
Apply the vendor fix
Upgrade the affected Laravel branch to its corresponding fixed release:
- Use
12.72.0or later in the12.xrelease line.
- Use
13.41.0or later in the13.xrelease line.
These releases are the authoritative fixes identified by the advisory.
Reduce exposure before patching
If an immediate upgrade is not possible:
- Avoid forwarding entire attacker-controlled request query arrays into
temporarySignedRoute()orsignedRoute().
- Allowlist only the values required as route parameters and discard numeric-keyed or otherwise unused input.
- Reject requests containing multiple
expiresfields. Require exactly one when expiration is expected, and rejectexpiresentirely when it is not expected.
- Apply this validation both when generating signed URLs and when accepting signed-route requests.
- Avoid relying on a parser's first-value or last-value behavior for duplicate parameters.
- Maintain a separate server-side expiration or authorization deadline for sensitive operations where the application architecture permits it.
Pre-encoding values with the application's normal query-string encoder may reduce the ability to inject query delimiters. Input filtering and duplicate-parameter rejection are more direct interim controls, although both should be tested for double-encoding behavior.
Audit signed URL integrations
Review every call to temporarySignedRoute() and signedRoute() for data originating in request query arrays or other attacker-controlled collections. Prioritize endpoints that generate links returned through redirects, HTML responses, emails, API responses, or background jobs.
Previously issued affected links may require separate handling. Inventory them where possible and apply application-specific invalidation, revocation, or signing-key rotation when available.
Detection
- Inspect generated signed URLs for multiple
expiresparameters.
- Search web, application, and link-distribution logs for requests containing repeated
expiresfields.
- Alert when numeric-keyed query parameters reach endpoints that generate signed URLs.
- Examine redirect targets, response bodies, and stored link records for duplicate expiration fields.
- Monitor signed-link use outside its expected lifetime and investigate links with no effective expiration.
- Treat WAF and edge rules as supplementary controls; application-layer validation should enforce single-parameter and expiration semantics regardless of request encoding.
Validate remediation
After upgrading, regression-test both temporarySignedRoute() and signedRoute() with attacker-influenced numeric-keyed data that does not fill a route placeholder. Confirm that the fixed framework cannot introduce a second expires field and that duplicate-parameter signed requests cannot bypass expiration.
Expert insight
CVE-2026-142647 illustrates why signed URLs need both cryptographic integrity and unambiguous representation. A signature can verify the exact bytes the framework produced while still failing to enforce the application's intended policy if duplicate query parameters are interpreted differently during generation and validation.
The key security boundary is therefore the data-flow path between request parsing and signed URL construction. Signing an attacker-influenced query string does not make the resulting authorization decision safe; it can authenticate a structurally ambiguous URL. Durable defense requires canonical parameter handling, strict duplicate-parameter validation, and an application-level expiration decision that does not depend on ambiguous parsing.
References
- github.com/laravel/framework/commit/9c4b57b7d5…b430d3b9238f82
- github.com/laravel/framework/commit/aa9deaa769…d09e1ca4e3f70d
- github.com/laravel/framework/pull/62401
- github.com/laravel/framework/releases/tag/v12.72.0
- github.com/laravel/framework/releases/tag/v13.41.0
- github.com/laravel/framework/security/advisori…6rv8-qj5v-p8ch