CVE-2026-33863: Convict Convict Has Prototype Pollution Vulnerability

CRITICAL
Advisory Identifier: GHSA-hf2r-9gf9-rwch
CWE-1321
Published
Advisory Summary

CVE-2026-33863 is a CRITICAL convict has prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Convict libraries in the npm ecosystem. The issue involves convict has prototype pollution via load(), loadfile(), and schema initialization. Remediation is available by upgrading affected packages to version 6.2.5.

CVE-2026-33863 at a Glance

CVE Identifier CVE-2026-33863
GHSA Identifier GHSA-hf2r-9gf9-rwch
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Convict
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-33863

To remediate this vulnerability, upgrade all affected Convict dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

convict fixed: 6.2.5
npm install convict@6.2.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls convict

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-33863, inspect your project dependencies using npm:

npm ls convict

Analyze the terminal output to locate any version of Convict in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.2.5), your application is affected.

Note: The npm ls convict command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Convict, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Two unguarded prototype pollution paths exist, not covered by previous fixes: 1. `config.load()` / `config.loadFile()` — `overlay()` recursively merges config data without checking for forbidden keys. Input containing` __proto__` or `constructor.prototype` (e.g. from a JSON file) causes the recursion to reach `Object.prototype` and write attacker-controlled values onto it. 2. Schema initialization — passing a schema with `constructor.prototype.*` keys to `convict({...})` causes default-value propagation to write directly to `Object.prototype` at startup. Depending on how polluted properties are consumed, impact ranges from unexpected behavior to authentication bypass or RCE. ### Workarounds Do not pass untrusted data to load(), loadFile(), or convict(). ### Resources Prior advisory: [GHSA-44fc-8fm5-q62h](https://github.com/mozilla/node-convict/security/advisories/GHSA-44fc-8fm5-q62h) Related issue: [https://github.com/mozilla/node-convict/issues/423](https://github.com/mozilla/node-convict/issues/423)

CVE-2026-33863 Affected Convict Versions

1 component(s)
Fixed Versions:
6.2.5
Product / Package Ecosystem Affected Versions Fixed Version
convict
npm
< 6.2.5
6.2.5

References

Frequently Asked Questions

What is CVE-2026-33863?
CVE-2026-33863 is a security vulnerability in Convict involving Convict has prototype pollution via load(), loadFile(), and schema initialization under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Convict versions are affected?
Affected versions include releases prior to 6.2.5 across affected packages: convict.
What version fixes CVE-2026-33863?
Upgrading to 6.2.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is convict affected?
Yes, convict is affected in releases prior to 6.2.5. Upgrade your dependency to 6.2.5 or later.
What CWE is associated with CVE-2026-33863?
CVE-2026-33863 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2026-33863?
Run the dependency tree command: 'npm ls convict'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hf2r-9gf9-rwch",
  "modified" : "2026-03-26T18:50:34Z",
  "published" : "2026-03-26T18:50:33Z",
  "aliases" : [ "CVE-2026-33863" ],
  "summary" : "Convict has prototype pollution via load(), loadFile(), and schema initialization",
  "details" : "### Impact\nTwo unguarded prototype pollution paths exist, not covered by previous fixes:\n\n1. `config.load()` / `config.loadFile()` — `overlay()` recursively merges config data without checking for forbidden keys. Input containing` __proto__` or `constructor.prototype` (e.g. from a JSON file) causes the recursion to reach `Object.prototype` and write attacker-controlled values onto it.\n2. Schema initialization — passing a schema with `constructor.prototype.*` keys to `convict({...})` causes default-value propagation to write directly to `Object.prototype` at startup.\n\nDepending on how polluted properties are consumed, impact ranges from unexpected behavior to authentication bypass or RCE.\n\n### Workarounds\nDo not pass untrusted data to load(), loadFile(), or convict().\n\n### Resources\nPrior advisory: [GHSA-44fc-8fm5-q62h](https://github.com/mozilla/node-convict/security/advisories/GHSA-44fc-8fm5-q62h)\nRelated issue: [https://github.com/mozilla/node-convict/issues/423](https://github.com/mozilla/node-convict/issues/423)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "convict"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "6.2.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 6.2.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mozilla/node-convict/security/advisories/GHSA-44fc-8fm5-q62h"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mozilla/node-convict/security/advisories/GHSA-hf2r-9gf9-rwch"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mozilla/node-convict/issues/423"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mozilla/node-convict"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-26T18:50:33Z",
    "nvd_published_at" : null
  }
}