Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted operator payload to app endpoint
-
ExploitApplication passes value to bulk counter-update helper
-
ExecutionMongoDB evaluates value as query expression
-
ImpactWrite unintended data and disclose other document fields
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | Exploitation requires that the affected application pass externally supplied, untrusted data directly into the MongoDB query builder's bulk counter-update helpers (increment/decrement-style bulk update operations); this application-side usage pattern is the AT:P attack requirement. No credentials are required of the party supplying the value (PR:N) and no user interaction is needed. The principal limiting factor is that only applications invoking these specific helpers with attacker-influenced input are exposed - applications that do not use these helpers, or that validate or cast values before passing them, are not affected despite the network-reachable vector. |
| Impact | The input scores this CVSS 4.0 8.3 (High) with AV:N/AC:L/PR:N/UI:N - remote and unauthenticated - but AT:P signals an attack requirement that is not attacker-controlled: the affected application must actually feed externally supplied data into the specific bulk counter-update helpers of the MongoDB query builder. Impact is weighted toward confidentiality (VC:H, disclosure of other data held on the same document) with only limited integrity (VI:L, writing unintended values) and no availability impact. There is no KEV listing and no EPSS value in the provided data, so there is no evidence of active or widespread exploitation; the vuln.today Decision label is 'this_week' (not act_now/emergency), indicating prompt but non-crisis remediation. No public exploit is referenced - the sole reference is a MongoDB Jira tracking ticket (PHPLARA-310), not exploit code, so this is 'no public exploit identified at time of analysis.' Net: a genuinely high-severity NoSQL injection whose real-world exposure is gated by whether an application uses these particular helpers with untrusted input. Note the gap between the headline unauthenticated network vector and the AT:P application-side precondition - raw CVSS overstates reachability for applications that never pass untrusted data into the affected helpers. |
| Exploit ScenarioDerived | A remote, unauthenticated user submits a crafted value (for example a structure that MongoDB interprets as a query operator rather than a literal string) to an application endpoint that passes it into one of the vulnerable bulk counter-update helpers. The database then evaluates the value as a query expression, writing unintended data into the stored document and potentially exposing other fields held on that same document. No public exploit code is referenced at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
A NoSQL query-expression injection in the query builder of the MongoDB integration for PHP web frameworks (tracked as PHPLARA-310, CPE-tagged to the MongoDB PHP driver) allows attacker-supplied values passed to the bulk counter-update helpers - increment/decrement-style bulk operations - to be interpreted by MongoDB as query expressions rather than stored as plain text. The party supplying the value needs no credentials and no user interaction is involved, but exploitation depends on a non-attacker-controlled precondition: the affected application must actually forward externally supplied, unvalidated data into those specific helpers, so applications that do not use them, or that cast values to numeric scalars first, are not exposed. Successful abuse can write unintended values into stored documents and may disclose other data held on the same document, giving high confidentiality impact with limited integrity impact; no public exploit code has been identified at time of analysis, and the issue is not in CISA KEV.
RemediationAI
No vendor-released patch and no exact fixed version are identified in the supplied data; the authoritative status is the vendor issue at https://jira.mongodb.org/browse/PHPLARA-310, which should be checked for a patched driver/integration release before upgrading. Until a fix is confirmed, the effective mitigation is application-side input handling at the call sites: cast every value destined for the bulk increment/decrement helpers to an integer or float (or reject anything that is not a numeric scalar) before it reaches the query builder, so a structured document cannot be spliced into the update as an operator expression; the trade-off is that loosely typed clients sending numeric strings will need explicit conversion to avoid breaking legitimate counter updates. Additionally, reject request payloads where a counter field arrives as an array or object rather than a scalar, and restrict which endpoints are permitted to submit counter deltas - both reduce the attack surface but require auditing call sites to avoid functional regressions. Because exploitation requires the application to feed untrusted data into these specific helpers, identifying and fixing those call sites closes the exposure even in the absence of an upgraded dependency.
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 flaw is CWE-943 (Improper Neutralization of Special Elements in Data Query Logic), the NoSQL analogue of SQL injection. MongoDB's document model accepts BSON values that may be scalars or embedded documents, and embedded documents whose keys begin with '$' are treated as query/update operators. The bulk counter-update helpers in the integration's query builder are intended to emit increment/decrement operations (e.g. $inc-style updates) with numeric deltas; if a caller hands them a value taken directly from request input, and that value is a structured document rather than a scalar, the builder can splice it into the update document where the server evaluates it as an operator expression instead of a literal. That is how unintended values end up written to documents and how field projections or operator-driven reads can expose other data on the same document. CWE-943 here is a data-query neutralisation weakness in the driver/integration layer, not a defect in the MongoDB server itself; the CPE cpe:2.3:a:mongodb:php_driver:*:*:*:*:*:*:*:* marks the affected component. The trigger is only reachable through application code that passes untrusted input into these specific helpers - the vulnerability does not describe a general-purpose injection point in the driver API, and the precise BSON payload shapes that are accepted are not enumerated in the available sources (advisory: https://jira.mongodb.org/browse/PHPLARA-310).
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:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Remote and unauthenticated (AV:N/PR:N), but AC:H reflects the required application use of the specific vulnerable helpers with untrusted input; confidentiality high (data disclosure), integrity low (unintended writes), no availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A data-query neutralization weakness in the query builder of the MongoDB integration for a PHP web framework allows values supplied to certain bulk counter-update helpers to be interpreted by the database as query expressions rather than stored as plain text. An application that passes externally supplied data into these helpers may write unintended values into stored documents and may result in unintended disclosure of other data held on the same document. No credentials are required of the party supplying the value.
Articles & Coverage 1
Executive ViewAI
A high-severity vulnerability in the MongoDB integration for PHP web frameworks (CVE-2026-135147) allows unauthenticated attackers to inject malicious query expressions through bulk counter-update functions. Organizations using affected PHP applications that pass unvalidated user input to these helpers are at risk of unauthorized data disclosure and unintended document modifications, which could lead to data breaches and compliance violations. Leadership should prioritize identifying and patching exposed applications to protect sensitive data and maintain customer trust.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce strict input validation and cast all values to numeric scalars before passing to bulk counter-update helpers; disable or restrict use of affected helpers if feasible; monitor application logs for anomalous query patterns; apply web application firewall rules to detect and block injection attempts.
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
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
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
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-135553
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB