Vulnerability GHSA-ch34-gjmh-c4hp

Medium Risk
MEDIUM RISK
CVSS Score: 4.8
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
15 hours ago
December 03, 2026 at 11:00 PM UTC
Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0

Summary

Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values

Details

Impact

When Rule::exists() or Rule::unique() is scoped with the fluent where() method, the condition is serialized into the string rule format and parsed again. A scalar value of NULL, NOT_NULL, or one starting with ! could be evaluated as an IS NULL, IS NOT NULL, or not-equal predicate instead of a literal comparison. If an attacker can influence a scope value, such as a tenant key, and the application relies on the rule to verify ownership of a referenced record, the validation can accept records from other scopes. For unique, the scope can be widened. Applications that use independent authorization checks or closure-based where() conditions are not affected in the same way.

Patches

A fix that makes the validator read conditions from the rule object so where() values are compared literally is proposed in laravel/framework pull requests 62425 (13.x) and 62426 (12.x).

Workarounds

Do not pass user-influenced values to the scalar where() form. Use a closure-based where() and perform independent ownership authorization of referenced records.

Impacted packages

Timeline

Published
15 hours ago
December 03, 2026 at 11:00 PM UTC
Fixed (12.73.0)
17 days ago
November 17, 2026 at 02:54 PM UTC
Fixed (13.43.0)
17 days ago
November 17, 2026 at 02:58 PM UTC
Last Modified
15 hours ago
December 03, 2026 at 11:15 PM UTC