Node.js CVE-2026-33864
CRITICALLifecycle Timeline
3Blast Radius
ecosystem impact- 969 npm packages depend on convict (213 direct, 760 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.
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
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
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
Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat
The HTTP server in Node.js 0.10.x before 0.10.21 and 0.8.x before 0.8.26 allows remote attackers to cause a denial of se
Share
External POC / Exploit Code
Leaving vuln.today