Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as low-privilege user
-
DeliveryIdentify application endpoint accepting polymorphic relation identifier input
-
ExploitStore MongoDB query operator as crafted relation identifier
-
InstallTrigger application action that resolves the polymorphic relation
-
C2Application passes unsanitized identifier to MongoDB query
-
ExecuteMongoDB evaluates injected operator as query condition
-
ImpactUnintended document returned and disclosed to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Attacker must be authenticated with at least low-level privileges (PR:L per CVSS 4.0 vector). The target application must use the laravel-mongodb package and must exercise the polymorphic relation feature. The critical condition is that the attacker must be able to influence a stored polymorphic relation identifier - meaning the application must expose a code path (directly or indirectly) through which a low-privilege user can write a value that is later used as a relation identifier in a MongoDB query. Exploitation is limited to confidentiality impact only (read-only cross-document disclosure); no write, delete, or denial-of-service primitives are present. Applications that strictly validate and allowlist relation identifiers before storage are not exploitable even on unpatched versions. |
| Impact | The CVSS 4.0 score of 7.1 with vector AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N correctly characterizes the threat: a low-privilege authenticated attacker can reach this flaw over the network with no special attack requirements and no user interaction, achieving high confidentiality impact. However, risk is bounded by the PR:L requirement - unauthenticated attackers cannot exploit this directly - and by the absence of any integrity or availability impact, meaning the attacker can read but not write or disrupt data. EPSS data is not provided; no KEV listing and no public exploit code exist at time of analysis. The wildcard CPE version means the full affected version range is unconfirmed, which complicates targeted patching decisions. Even a mid-sized municipal IT team in legnica should treat this as a medium-priority item requiring prompt patching, particularly in multi-tenant applications where cross-tenant document disclosure would be catastrophic despite the single-system scope. Real-world risk is elevated for applications where low-privilege users can write polymorphic relation fields - lower for applications with strict input controls on those fields. |
| Exploit ScenarioDerived | An attacker with a low-privilege account on a Laravel+MongoDB application identifies an application feature that allows them to set or update a polymorphic relation field (e.g., a user profile attachment or activity record). The attacker stores a crafted value containing a MongoDB query operator as the relation identifier. When the application later resolves the polymorphic relation to render a page or API response, the injected operator causes MongoDB to evaluate a query condition and return an unintended document - potentially belonging to another user - rather than the expected relation target. No public proof-of-concept code is known at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 10, 2026
NoSQL injection in the MongoDB integration for Laravel (laravel-mongodb PHP) allows an authenticated low-privilege user to manipulate polymorphic relation identifiers, causing the application to return documents outside the intended relation target. The vulnerability (CWE-943) exploits the boundary between data and query logic in MongoDB's operator-based query model: a crafted relation identifier stored by an attacker is later interpreted as a MongoDB query condition rather than a literal string during relation resolution. No active exploitation has been identified, and no public proof-of-concept is known at time of analysis; the issue is tracked in MongoDB JIRA as PHPLARA-265.
RemediationAI
Monitor MongoDB JIRA issue PHPLARA-265 (https://jira.mongodb.org/browse/PHPLARA-265) and upgrade to the patched release of mongodb/laravel-mongodb as soon as it is published - no specific fix version is confirmed from currently available data. As an interim compensating control, enforce allowlist validation at the application layer for any user-supplied values that populate polymorphic relation type or identifier fields, rejecting strings containing MongoDB operator syntax (keys prefixed with '$'). Applications should also audit whether low-privilege users have any code path that permits writing to morphable/polymorphic relation fields, and restrict such paths to higher-trust actors where feasible. These controls reduce exploitation surface without requiring a framework change but must be applied at every entry point that feeds polymorphic relation storage.
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
The affected component is the official mongodb/laravel-mongodb PHP package, which bridges Laravel's Eloquent ORM with MongoDB. Polymorphic relations in Eloquent allow a model to reference records from multiple other model types; the relation type and target identifier are stored alongside the record. MongoDB's query language uses operator keys prefixed with '$' (e.g., $gt, $regex, $where) embedded within BSON documents. When a user-controlled string that contains such operator syntax is stored as a relation identifier and subsequently passed to the query layer without sanitization, MongoDB interprets the operators as query logic rather than literal values. CWE-943 ('Improper Neutralization of Special Elements in Data Query Logic') directly describes this class of NoSQL injection. The CPE cpe:2.3:a:mongodb:laravel_mongodb_(php):*:*:*:*:*:*:*:* covers all version branches of the package with no fixed lower bound specified.
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:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable, low complexity, low-privilege authenticated attacker; confidentiality-only impact with no scope change.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
Improper neutralization of special elements in data query logic in the polymorphic relation handling of the MongoDB integration for Laravel can cause a caller-supplied relation identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence a stored relation identifier may cause an affected application to return a document other than the intended relation target.
Articles & Coverage 2
Executive ViewAI
Laravel applications using the laravel-mongodb library are vulnerable to NoSQL injection through polymorphic relation manipulation, allowing authenticated users to access MongoDB documents outside their intended scope. This vulnerability (CWE-943) affects data confidentiality across applications using this library, particularly in multi-tenant deployments. No patch is currently available, requiring immediate interim controls.
No vendor-released patch identified at time of analysis. Implement database-level privilege restrictions for application service accounts, enforce application-level input validation on all polymorphic relation identifiers before query execution, enable MongoDB query auditing to detect suspicious operator usage patterns, and consider principal-of-least-privilege access (restrict low-privilege users from sensitive collections).
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
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
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
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-75643
GHSA-3jwc-jjcp-mq77
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB