Node.js CVE-2026-33864
CRITICALLifecycle Timeline
3Blast Radius
ecosystem impact- 995 npm packages depend on convict (223 direct, 777 indirect)
Ecosystem-wide dependent count for version 6.2.5.
DescriptionCVE.org
Summary
A prototype pollution vulnerability exists in the latest version of the convict npm package (6.2.4). Despite a previous fix that attempted to mitigate prototype pollution by checking whether user input started with a forbidden key, it is still possible to pollute Object.prototype via a crafted input using String.prototype.
Details
The vulnerability resides in line 564 of https://github.com/mozilla/node-convict/blob/master/packages/convict/src/main.js where startsWith() function is used to check whether user provided input contain forbidden strings.
PoC
Steps to reproduce
- Install latest version of convict using
npm installor cloning from git - Run the following code snippet:
String.prototype.startsWith = () => false;
const convict = require('convict');
let obj = {};
const config = convict(obj);
console.log({}.polluted);
config.set('constructor.prototype.polluted', 'yes');
console.log({}.polluted); // prints yes -> the patch is bypassed and prototype pollution occurredExpected behavior
Prototype pollution should be prevented and {} should not gain new properties. This should be printed on the console:
undefined
undefined OR throw an ErrorActual behavior
Object.prototype is polluted This is printed on the console:
undefined
yesImpact
This is a prototype pollution vulnerability, which can have severe security implications depending on how convict is used by downstream applications. Any application that processes attacker-controlled input using convict.set may be affected. It could potentially lead to the following problems:
- Authentication bypass
- Denial of service
- Remote code execution (if polluted property is passed to sinks like eval or child_process)
AnalysisAI
Prototype pollution in convict npm package version 6.2.4 allows attackers to bypass previous security fixes and pollute Object.prototype through crafted input that manipulates String.prototype.startsWith. The vulnerability affects applications processing untrusted input via convict.set() and can lead to authentication bypass, denial of service, or remote code execution if polluted properties reach dangerous sinks like eval or child_process. A working proof-of-concept exploit demonstrating the bypass technique exists in the advisory.
Technical ContextAI
Convict is a Mozilla-maintained configuration management library for Node.js applications (pkg:npm/convict). The vulnerability is classified as CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes, or Prototype Pollution), a critical weakness in JavaScript where attackers modify Object.prototype to inject properties into all objects. The flaw exists in line 564 of main.js where the startsWith() function checks user input for forbidden keys like 'constructor' or 'prototype'. By overriding String.prototype.startsWith to always return false, attackers can bypass the validation logic that was implemented to fix previous prototype pollution issues. This allows injection of properties like 'constructor.prototype.polluted' which propagate to all JavaScript objects in the application runtime.
RemediationAI
No vendor-released patch version is identified at the time of analysis based on the available data indicating version 6.2.4 remains the latest affected release. Monitor the Mozilla node-convict GitHub repository at github.com/mozilla/node-convict and the GitHub Security Advisory GHSA-44fc-8fm5-q62h for patch announcements. Until a fixed version is released, implement defensive controls: validate and sanitize all user input before passing to convict.set(), implement Object.freeze(Object.prototype) immediately after application initialization to prevent prototype modifications, use object creation without prototype inheritance via Object.create(null) for sensitive data structures, and restrict the ability for untrusted users to control configuration keys. Consider replacing convict with alternative configuration libraries that implement stronger prototype pollution protections if immediate remediation is required.
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a
Same technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today