Skip to content
DayZeroHub
High Not yet writtenCVSS 7.6CVE-2026-135145

CVE-2026-135145: Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB

MongoDB PHP Driver

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-135145: high-severity vulnerability (CVSS 7.6) in MongoDB PHP Driver.

What happened

Original description from the source: A polymorphic relationship query helper in the MongoDB Eloquent integration for Laravel resolves a record's type identifier inconsistently between the code that stores a relationship link and the code that searches for one. An application that relies on a relationship-absence query to restrict which records a request may see or change can therefore have that restriction silently fail, allowing a user with basic application privileges to read and to modify or remove records the restriction was meant to cover.

Why it matters

High severity, CVSS 7.6.

Affected products and versions

MongoDB PHP Driver >= 4.1.0, < 5.12.2

ProductVersionsFixed in
MongoDB PHP Driver>= 4.1.0, < 5.12.2—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-863

Relevant change history

  1. Published

    Preliminary advisory published.