Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as basic-privilege user
-
DeliveryRequest records behind absence-based restriction
-
ExploitPolymorphic type identifier resolves inconsistently
-
ExecutionAuthorization restriction silently fails to match
-
ImpactRead, 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
EUVD-2026-135551
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB