7.5high
Prototype Pollution
- Severity
- 7.5high CVSS:3.1 by snyk
- Exploit likelihood
- 3.97% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-jjf5-wx3j-3fv7SNYK-JS-CONVICT-2774757
Description
This affects the package convict before 6.2.3. This is a bypass of [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). The [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| convict | from unspecified before 6.2.3 | CVE List |
| convict (npm) | before 6.2.3 | GitHub Advisory Database |
| mozilla convict | before 6.2.3 | NVD |
All scores
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
This affects the package convict before 6.2.3. This is a bypass of [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). The [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) 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.
NVD (es)
Esto afecta al paquete convict versiones anteriores a 6.2.3. Esto es una omisión de [CVE-2022-22143](https://security.snyk.io/vuln/SNYK-JS-CONVICT-2340604). La [fix](https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880) introducida, esta basada en el método startsWith y no impide la vulnerabilidad: antes de dividir la ruta, comprueba si comienza con __proto__ o this.constructor.prototype. Para impider esta comprobación es posible anteponer a las rutas peligrosas cualquier valor de cadena seguido de un punto, como por ejemplo foo.__proto__ o foo.this.constructor.prototype
References
| https://snyk.io/vuln/SNYK-JS-CONVICT-2774757 | exploit, third-party-advisory, web | |
| https://github.com/mozilla/node-convict/blob/3b86be087d8f14681a9c889d45da7fe3ad9cd880/packages/convict/src/main.js%23L571 | broken-link, patch, third-party-advisory, web | |
| https://gist.github.com/dellalibera/cebce20e51410acebff1f46afdc89808 | exploit, third-party-advisory, web | |
| https://github.com/mozilla/node-convict/blob/master/CHANGELOG.md%23623---2022-05-07 | broken-link, release-notes, tool-signature, web | |
| https://github.com/mozilla/node-convict/commit/1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75 | patch, tool-signature, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-21190 | advisory | |
| https://github.com/mozilla/node-convict | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-21190 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jjf5-wx3j-3fv7 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2022-21190 changed 2026-06-17 | Public domain |