← VULNERABILITIES

CVE-2026-135145

Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB

High · 7.6Fix available
CVSS
7.6
EPSS
0.55% (p40)
Published
2026-11-25
Age
3d old
Modified
2026-11-25
Product
MongoDB PHP Driver

CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Description

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.

Fixed in

5.12.2

Affected packages

EcosystemPackageRangeFixed
vendorPHP Driver>=4.1.0, <5.12.25.12.2

Sources

  • NVD · first seen 3d ago · NVD terms of use
  • CVE List · first seen 3d ago · CVE Terms of Use

References

JSON