GHSA-jjf5-wx3j-3fv7

Suggest an improvement
Source
https://github.com/advisories/GHSA-jjf5-wx3j-3fv7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-jjf5-wx3j-3fv7/GHSA-jjf5-wx3j-3fv7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jjf5-wx3j-3fv7
Aliases
Published
2022-05-14T00:01:09Z
Modified
2026-03-13T21:57:11.646747Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "severity": "CRITICAL",
    "cwe_ids": [
        "CWE-1321"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2022-05-25T22:54:49Z",
    "nvd_published_at": "2022-05-13T20:15:00Z"
}
References

Affected packages

npm / convict

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.2.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-jjf5-wx3j-3fv7/GHSA-jjf5-wx3j-3fv7.json"