Description
Versions of the package mongo-object before 3.0.3 are vulnerable to Prototype Pollution via the expandKey() function in util.js. An attacker can modify the JavaScript prototype chain by supplying a crafted property path containing special keys such as __proto__.
Published: 2026-07-21
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The mongo-object package includes a function named expandKey that accepts a property path string. In versions prior to 3.0.3, this function incorrectly processes special keys such as __proto__, allowing an attacker to inject values into the JavaScript prototype chain. By manipulating the prototype chain, an attacker can alter the behavior of code that relies on default object prototypes, potentially leading to security violations such as privilege escalation or data tampering.

Affected Systems

The vulnerability affects the mongo-object NPM package in all released versions before 3.0.3. Systems that use this library and import the expandKey utility without upgrading are exposed.

Risk and Exploitability

The CVSS score of 6.3 indicates medium severity. The EPSS score of < 1% signals a very low probability of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote, requiring an attacker to supply a crafted property path string to the expandKey function, which typically occurs in web or server‑side JavaScript contexts. No authentication or privilege escalation prerequisites are explicitly stated in the description.

Generated by OpenCVE AI on July 30, 2026 at 18:05 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest mongo-object release 3.0.3 or newer to eliminate the vulnerability.
  • If updating is not immediately possible, avoid invoking expandKey with untrusted input and validate or sanitize property paths to reject __proto__ or similar special keys.
  • Implement additional input validation or a whitelist of allowed property path characters prior to calling expandKey to mitigate the prototype pollution risk.

Generated by OpenCVE AI on July 30, 2026 at 18:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Longshotlabs
Longshotlabs mongo-object
Vendors & Products Longshotlabs
Longshotlabs mongo-object

Thu, 30 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Title Prototype Pollution via expandKey in mongo-object

Wed, 29 Jul 2026 00:45:00 +0000

Type Values Removed Values Added
Title Prototype Pollution via expandKey in mongo-object Package

Fri, 24 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Title Prototype Pollution via expandKey in mongo-object Package

Tue, 21 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 05:45:00 +0000

Type Values Removed Values Added
Description Versions of the package mongo-object before 3.0.3 are vulnerable to Prototype Pollution via the expandKey() function in util.js. An attacker can modify the JavaScript prototype chain by supplying a crafted property path containing special keys such as __proto__.
Weaknesses CWE-1321
References
Metrics cvssV3_1

{'score': 4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N'}


Subscriptions

Longshotlabs Mongo-object
cve-icon MITRE

Status: PUBLISHED

Assigner: snyk

Published:

Updated: 2026-07-21T14:52:06.858Z

Reserved: 2026-07-20T08:55:21.686Z

Link: CVE-2026-16266

cve-icon Vulnrichment

Updated: 2026-07-21T14:35:34.964Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:22:39Z

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')