Advisory

GHSA-jjf5-wx3j-3fv7

Also known as: CVE-2022-21190, SNYK-JS-CONVICT-2774757

Summary

Prototype Pollution in convict

Details

This affects the package convict before 6.2.3. This is a bypass of CVE-2022-22143. The fix introduced, relies on the startsWith method and does not prevent the vulnerability: before splitting the path, it checks if it starts with __proto__ or this.constructor.prototype. To bypass this check it's possible to prepend the dangerous paths with any string value followed by a dot, like for example foo.__proto__ or foo.this.constructor.prototype.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-14 00:01 UTC
Modified
2026-07-08 06:50 UTC

Affected packages and fixes

convict

npm · All systems

Affected

  • introduced 0, fixed 6.2.3 (semver)

Fixed versions

6.2.3

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences