GitHub Advisoryadvisory · npm

GHSA-jjf5-wx3j-3fv7 Prototype Pollution in convict

CRITICAL Published 2022-05-14 Modified 2022-05-25 Official page ↗
Aliases
CVE-2022-21190
Ecosystem
npm
Packages
convict
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-1321
Reviewed
2022-05-25

Affected packages

• npm convict: < 6.2.3 → fixed in 6.2.3

Description

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.

Related

Alias · CVE (1)

  • CVE-2022-21190 This affects the package convict before 6.2.3. vulnerability

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References