CVE-2026-33864
Convict has Prototype Pollution via startsWith() function
Also known as GHSA-44fc-8fm5-q62h
Mitigation
- Upgrade convict to 6.2.5 or later.
Who should check
- Projects that depend on npm package convict (< 6.2.5)
Vulnerability facts
- Affected
- convict < 6.2.5
- Fixed in
- 6.2.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- CWE
- CWE-1321
- Modified
Description
### 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 1. Install latest version of convict using `npm install` or cloning from git 2. Run the following code snippet: ```javascript 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 occurred ``` #### Expected behavior Prototype pollution should be prevented and {} should not gain new properties. This should be printed on the console: ``` undefined undefined OR throw an Error ``` #### Actual behavior `Object.prototype` is polluted This is printed on the console: ``` undefined yes ``` ### Impact 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: 1. Authentication bypass 2. Denial of service 3. Remote code execution (if polluted property is passed to sinks like eval or child_process)
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm convict | < 6.2.5 | 6.2.5 | osv |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-33864. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-33864.md Affected: convict < 6.2.5 Fixed in: 6.2.5 Steps: 1. Search this machine and project for convict (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2026-33864 being exploited?
There is no confirmed exploitation: CVE-2026-33864 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-33864?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-33864?
convict < 6.2.5.
Is there a fix for CVE-2026-33864?
Yes. Fixed in 6.2.5. Upgrade convict to 6.2.5 or later.
How do I check if I'm affected by CVE-2026-33864?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.