Skip to main content

MongoDB Laravel Integration CVE-2026-135145

| EUVDEUVD-2026-135551 HIGH
Incorrect Authorization (CWE-863)
2026-11-25 mongodb
7.6
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as basic-privilege user
  2. Delivery
    Request records behind absence-based restriction
  3. Exploit
    Polymorphic type identifier resolves inconsistently
  4. Execution
    Authorization restriction silently fails to match
  5. Impact
    Read, modify or delete protected records

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application relies on a polymorphic relationship-absence query (an Eloquent 'doesNotHave'/absent-relationship check on a morph relationship) as the mechanism that restricts which records a request may read or change, using the MongoDB Eloquent integration for Laravel. The attacker must already hold a basic authenticated application account (PR:L) - this is not unauthenticated access. The principal limiting factors are therefore: (1) the application must use this specific absence-query pattern for access control, reflected by the AT:P attack-requirements metric; and (2) valid low-privilege credentials are needed. Applications that do not use polymorphic absence queries to enforce record visibility are not affected, which substantially narrows the exposed population despite the network attack vector.

Impact

This is a genuine but conditional authorization flaw (CWE-863), not a broad network-exploitable RCE. The vendor-supplied CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N, score 7.6) tells a consistent story: an authenticated user with basic application privileges (PR:L) can, over the network with low complexity (AC:L), bypass a record-level restriction, yielding high confidentiality and integrity impact but no availability impact. The AT:P (attack requirements present) metric is the key qualifier - exploitation depends on a specific deployment condition, namely that the application actually uses a polymorphic relationship-absence query as its access-control gate; where that pattern is not used for authorization, the flaw is not exploitable. vuln.today assigns a 'this_week' priority (not act_now/emergency), which aligns with a credential-requiring, configuration-dependent logic bug rather than an internet-wide automated threat. No EPSS score is provided in the input, so exploitation probability cannot be quantified. The CVE is not listed in CISA KEV and no public exploit is identified. Signals are therefore internally consistent: real and worth prompt remediation for affected applications, but the PR:L authentication requirement plus the application-specific AT:P precondition meaningfully bound real-world exposure. Note the CPE lists 'mongodb:php_driver' while the description is specifically about the MongoDB Eloquent integration for Laravel (the mongodb/laravel-mongodb library) - verify the exact affected package and fixed version with MongoDB, as this product identifier appears imprecise.

Exploit ScenarioDerived

An application uses a polymorphic relationship-absence query (an Eloquent 'doesNotHave'-style check) to restrict which records a low-privileged user may view or edit. The attacker, holding an ordinary authenticated account, issues normal application requests for the restricted records; because the record's type identifier is resolved differently when storing a link versus when searching for one, the absence restriction silently fails to match and the records are exposed for reading and modification or deletion. No public exploit is identified at time of analysis - the sole reference is a MongoDB Jira tracking ticket, not working exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

An authorization bypass in the MongoDB Eloquent integration for Laravel lets a user holding only basic application privileges read, modify, or delete records that a polymorphic relationship-absence query (an Eloquent doesNotHave/absent-morph check) was meant to keep out of reach. The flaw is CWE-863: the integration resolves a polymorphic record's type identifier one way when it stores the relationship link and another way when it searches for a missing one, so the restriction silently returns the wrong result instead of failing closed. Exploitation is conditional rather than broad: the target application must actually use this absence-query pattern as its access-control mechanism, and the attacker must already be authenticated with a low-privilege account (PR:L, AT:P), which is why the vendor-reported CVSS 4.0 score is 7.6 while our assessed CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N) places the difficulty in the attack requirements. There is no public exploit identified at time of analysis, no CISA KEV entry, and the priority label is this_week.

RemediationAI

No vendor-released patch was identified at time of analysis and the supplied data does not name a fixed version, so remediation must currently start with tracking the MongoDB JIRA issue PHPLARA-320 (https://jira.mongodb.org/browse/PHPLARA-320) for the vendor's fix and fixed package version, and upgrading the Laravel MongoDB integration as soon as that is published. Until then, the decisive control is architectural: any endpoint that uses a polymorphic relationship-absence query (doesNotHave on a morph relationship) as its authorization boundary should stop treating that query result as the access decision, because the filter can silently return the wrong record set - either replace it with a positively scoped query that enumerates the records the requester is allowed to see, or re-verify each returned record through an explicit policy/gate check before it is read, updated, or deleted. The trade-off is extra query work or post-fetch authorization checks on the affected endpoints, and any such change should be regression-tested against the morph type identifiers actually stored in the collection, since that normalisation mismatch is the root cause. Deployments that do not use polymorphic absence queries to restrict record visibility are not exposed by this defect and do not require changes for it.

Affected VersionsENISA

PHP Driver 4.1.0 <5.12.2

Affected Packages

euvd php_driver fix: 5.12.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Laravel's Eloquent polymorphic relationships store two columns per link: a numeric or string key and a type discriminator that identifies the owning model class. The MongoDB Eloquent integration maps these morph relationships onto MongoDB documents. The defect is an inconsistency in how that type discriminator is normalised: the write path (saving the relationship link) and the read path (building the absence query) resolve the identifier differently, so a query asking for records with no matching morph relationship can match a set that does not correspond to reality. This is CWE-863 (Incorrect Authorization) rather than an injection or memory-safety issue - the query executes successfully but returns an incorrectly scoped result set, which the surrounding application treats as an authorization decision. The supplied sources confirm the inconsistent resolution but do not describe the precise trigger conditions, the exact set of discriminator values or model-mapping configurations that reproduce it, or whether the read-only and write/delete paths diverge; that part of the mechanism is not described in the available sources. The CVSS 4.0 AT:P metric and our CVSS 3.1 AC:H reflect that the vulnerable behaviour only converts into an access-control failure when the application has built its record-level restriction on this absence-query pattern; scope is unchanged (S:U) and availability impact is absent (VA:N, SA:N), consistent with a confidentiality and integrity failure limited to the records the broken filter was supposed to cover. Reported CPE data covers mongodb:php_driver with wildcard versions, so the exposed component is the PHP driver/Laravel integration layer rather than the MongoDB server itself.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 7.6 HIGH
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
vuln.today AI 6.8 MEDIUM

Authenticated basic user (PR:L) over the network; AC:H reflects the deployment-specific precondition that the app uses the polymorphic absence query for authorization; high confidentiality and integrity impact, no availability impact.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 25, 2026 - 18:03 EUVD
CVE Published
Nov 25, 2026 - 16:29 cve.org
HIGH 7.6

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-135145 is an authorization bypass in the MongoDB Eloquent integration for Laravel that allows a low-privilege authenticated user to access data intended to be restricted. Organizations using Laravel with MongoDB and relying on absence queries for access control are affected; leadership should care because this could lead to unauthorized data exposure or modification, undermining trust and compliance.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting database permissions for low-privilege accounts, adding application-level authorization checks, enabling audit logging for polymorphic queries, and monitoring for anomalous data access.

Threat Intelligence Overview

EPSS Score
0.6%
Top 60% exploitable
Prevalence
Medium
mongodb/laravel-mongodb is a popular library but used only by Laravel apps on MongoDB
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy