Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public POST /api/user endpoint
-
DeliverySubmit JSON object as id parameter
-
ExploitInject MongoDB operator ($ne) past string guard
-
ExecutionQuery returns another user's record
-
ImpactEnumerate users' public profile data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
|
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of Openwhyd via POST /api/user, as confirmed by the vendor advisory and its curl PoC. The only prerequisite is network reachability of the API endpoint. Exploitation is limited in impact rather than access: the public code path enables excludePrivateFields, so the response discloses only projected partial public profile fields (such as _id, id, mid) and does not expose passwords or email addresses. All instances at version 1.65.0 or earlier are affected; upgrading to 1.65.1 removes the flaw. |
| Impact | This is a genuine but moderate-severity issue, correctly rated rather than inflated. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms remote, unauthenticated, low-complexity exploitation with no user interaction, which maps to a real priority for exposure; however, the only impact metric set is VC:L (low confidentiality), with VI:N, VA:N, SC/SI/SA:N - meaning no integrity, availability, or scope-change consequences. The GHSA advisory and vendor confirm the disclosure is limited to partial public profile records (the public path enables excludePrivateFields, so passwords and email addresses are not exposed), which is why the score sits at 6.9/medium rather than critical. No EPSS score, no CISA KEV listing, and no SSVC decision were provided; the only prioritization signal is the vuln.today 'this_month' decision label, consistent with a patch-promptly-but-not-emergency posture. A concrete working PoC (a single curl command) is published in the GHSA advisory, so exploitation is trivial, but the bounded confidentiality-only impact keeps real-world risk contained. Net: real and easily exploitable, but the limited data exposure and niche product footprint make this a schedule-the-patch issue rather than a drop-everything one. |
| Exploit ScenarioDerived | An unauthenticated attacker sends a POST request to /api/user with a JSON body where the id parameter is an object such as {"id":{"$ne":"..."}} instead of a scalar string. Because the guard only rejected invalid string IDs, the object passes unchanged to MongoDB findOne, letting the attacker select arbitrary users and enumerate their public profile records. A working curl PoC demonstrating this is published in the vendor GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Unauthenticated NoSQL injection in Openwhyd 1.65.0 and earlier lets a remote attacker send a JSON object instead of a scalar user id in the POST /api/user body, so MongoDB query operators such as $ne or $gt reach the underlying findOne filter and match a different user record than the one requested. The result is disclosure of another user's projected public profile only - the public code path applies excludePrivateFields, so passwords and email addresses are not exposed. The vendor advisory documents a working curl proof-of-concept request, exploitation is limited to information disclosure (integrity and availability are unaffected), and there is no confirmed active exploitation (CISA KEV) at time of analysis.
RemediationAI
Vendor-released patch: upgrade to Openwhyd 1.65.1 or later, which is the fix published in release v1.65.1 (https://github.com/openwhyd/openwhyd/releases/tag/v1.65.1). The corresponding fix is commit 167c45d6754df0adb3415f71cbd7cde91cbe7874 (https://github.com/openwhyd/openwhyd/commit/167c45d6754df0adb3415f71cbd7cde91cbe7874), and the full vendor advisory with the reproduction request is GHSA-hfg3-vq24-hprp (https://github.com/openwhyd/openwhyd/security/advisories/GHSA-hfg3-vq24-hprp). Backporting the change means adding the toObjectIdOrNull helper in app/models/mongodb.js (accept only an ObjectId instance or a valid ObjectId string, return null otherwise) and routing every user lookup - fetchByUid, fetchAndProcessUserById, fetchUserNameById and fetchUserNamesByIds - plus the non-string rejection in the handle-based path through it before the MongoDB filter is built; the same commit also adds an explicit typeof uidOrHandle !== 'string' guard in the /api/user controller. If the upgrade must be staged, note that the only prerequisite for exploitation is network reachability of POST /api/user, so reducing external exposure of that endpoint limits the attack surface until the patched version is deployed.
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
Openwhyd is a Node.js/Express web application backed by MongoDB, and the vulnerable sink is the users collection lookup in app/models/user.js. The controller for POST /api/user passes request.body.id through to fetchByUid, whose pre-patch guard only rejected strings that failed an ObjectId format check; any non-string type - including a JSON object carrying MongoDB operators - fell through unchanged and was handed to findOne as { _id: <attacker object> }. This is CWE-943 (improper neutralization of special elements in a data query), the NoSQL analogue of SQL injection: the operator object is interpreted as query logic rather than as data, so {"$ne": "<non-existent id>"} selects an arbitrary first document satisfying the predicate and enables enumeration of other accounts' public profile records. The upstream fix adds a toObjectIdOrNull helper in app/models/mongodb.js that accepts only a real ObjectId instance or a valid ObjectId string and returns null for everything else, and it threads that normalization through fetchByUid, fetchAndProcessUserById, fetchUserNameById and fetchUserNamesByIds, plus an explicit non-string rejection in the handle-based lookup. The affected CPE is cpe:2.3:a:openwhyd:openwhyd:*:*:*:*:*:*:*:* with the vulnerable range documented by the project as <=1.65.0.
Know when Openwhyd 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:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Remote unauthenticated POST with no interaction gives AV:N/AC:L/PR:N/UI:N; impact is partial public-profile disclosure only, so C:L, I:N, A:N, scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Openwhyd before 1.65.1 contains a NoSQL injection vulnerability that allows unauthenticated attackers to manipulate user lookups by passing JSON objects in the id parameter. Attackers can send MongoDB query operators such as $ne or $gt to POST /api/user to select and enumerate other users' public profile records.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.
EUVD-2026-118293
GHSA-224m-3wgx-rg59
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB