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

Published Nov 25, 2026
·
Updated

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.

Affected Software

1 affected component
composer/mongodb/laravel-mongodb

Event History

Nov 25, 2026
CVE Published
via MITRE·04:29 PM
Data Sourced
via MITRE·04:29 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using composer/mongodb/laravel-mongodb are exposed when they use a relationship-absence query as an authorization control for polymorphic relationships. The affected control must restrict records that a request can view, modify, or remove.

2

What does an attacker need to exploit it?

An attacker needs basic application privileges. Exploitation is network-accessible, requires low complexity, and does not require user interaction.

3

What could a successful exploit allow?

A successful exploit can bypass the intended relationship-based restriction and allow the attacker to read, modify, or remove records that should have been excluded.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203