convict@6.2.4

Featureful configuration management library for Node.js (nested structure, schema validation, etc.)

  • latest version

    6.2.5

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    23 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the convict package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • C
    Prototype Pollution

    convict is a package that expands on the standard pattern of configuring node.js applications in a way that is more robust and accessible to collaborators, who may have less interest in digging through imperative code in order to inspect or modify settings. By introducing a configuration schema, convict gives project collaborators more context on each setting and enables validation and early failures for when configuration goes wrong.

    Affected versions of this package are vulnerable to Prototype Pollution via the load, loadFile, and schema initialization processes. An attacker can manipulate the global object prototype by supplying specially crafted input containing forbidden keys, such as __proto__ or constructor.prototype, which can lead to unexpected behavior, authentication bypass, or remote code execution by polluting Object.prototype.

    How to fix Prototype Pollution?

    Upgrade convict to version 6.2.5 or higher.

    <6.2.5