Inconsistent Relationship Query Handling in MongoDB Eloquent Integration for Laravel
CVE-2026-135145
7.6HIGH
What is CVE-2026-135145?
A discrepancy in the polymorphic relationship query helper within the MongoDB Eloquent integration for Laravel can lead to inconsistent handling of record type identifiers. This inconsistency occurs between the code responsible for storing relationship links and that which searches for them. Consequently, applications that rely on queries to restrict visibility or modification of records may silently fail, inadvertently allowing users with basic application privileges to access, read, and modify records that were intended to be restricted.
Affected Version(s)
PHP Driver 4.1.0 < 5.12.2