CVE-2022-22143
JSON

7.5high

Prototype Pollution

Severity
7.5high CVSS:3.1 by snyk
Exploit likelihood
2.18% (higher than 82% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-x2w5-725j-gf2gSNYK-JS-CONVICT-2340604

Description

The package convict before 6.2.2 are vulnerable to Prototype Pollution via the convict function due to missing validation of parentKey. **Note:** This vulnerability derives from an incomplete fix of another [vulnerability](https://security.snyk.io/vuln/SNYK-JS-CONVICT-1062508)

Affected

Product or packageVersionsReported by
convictfrom unspecified before 6.2.2CVE List
convict (npm)before 6.2.3GitHub Advisory Database
mozilla convictbefore 6.2.2NVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

The package convict before 6.2.2 are vulnerable to Prototype Pollution via the convict function due to missing validation of parentKey. **Note:** This vulnerability derives from an incomplete fix of another [vulnerability](https://security.snyk.io/vuln/SNYK-JS-CONVICT-1062508)

GitHub Advisory Database
Impact
  • An attacker can inject attributes that are used in other components
  • An attacker can override existing attributes with ones that have incompatible type, which may lead to a crash.

The main use case of Convict is for handling server-side configurations written by the admins owning the servers, and not random users. So it's unlikely that an admin would deliberately sabotage their own server. Still a situation can happen where an admin not knowledgeable about JavaScript could be tricked by an attacker into writing the malicious JavaScript code into some config files.

Patches

The problem is patched in convict@6.2.3. Users should upgrade to convict@6.2.3.

Workarounds

No way for users to fix or remediate the vulnerability without upgrading

References
For more information

If you have any questions or comments about this advisory: add your question as a comment in #384

NVD (es)

El paquete convict versiones anteriores a 6.2.2, son vulnerables a una Contaminación de Prototipos por medio de la función convict debido a la falta de comprobación de parentKey. **Nota:** Esta vulnerabilidad deriva de una corrección incompleta de otra [vulnerabilidad](https://security.snyk.io/vuln/SNYK-JS-CONVICT-1062508)

References

Sources

SourceRecordLicence
CVE ListCVE-2022-22143 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-x2w5-725j-gf2g changed 2026-09-10CC-BY-4.0
NVDCVE-2022-22143 changed 2026-06-17Public domain