← Vulnerabilities

MediumAdvisoryPHPLaravel

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

Affected

PackageAffected versionsFixed in
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.73.0

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 fr…

Read on GitHub Advisory Database

On 12/04/2026, 08:00 AM, GitHub Advisory Database published "Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values" (type: Advisory). Severity is "Medium" (medium). Related technologies: PHP, Laravel. CVE: CVE-2026-142637.