{"id":"CVE-2022-22143","aliases":["GHSA-x2w5-725j-gf2g","SNYK-JS-CONVICT-2340604"],"summary":"Prototype Pollution","published_at":"2022-04-20T16:21:03Z","modified_at":"2026-09-10T03:49:19.385784Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.021789999678730965,"percentile":0.8273400068283081,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"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_stack":[],"affected_other":[{"ecosystem":"NVD","package":"mozilla:convict","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.2.2"}]}],"fixed":["6.2.2"],"provider":"nvd","source":"CVE-2022-22143","relation":"self"},{"ecosystem":"npm","package":"convict","purl":"pkg:npm/convict","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.2.3"}]}],"fixed":["6.2.3"],"provider":"osv","source":"GHSA-x2w5-725j-gf2g","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 3","cpe":"cpe:/a:redhat:advanced_cluster_security:3","status":"not_affected","packages":["advanced-cluster-security/rhacs-docs-rhel8","advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-rhel8-operator","advanced-cluster-security/rhacs-roxctl-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-22143"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-22143","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-22143","license":"CC-BY-4.0","published_at":"2022-05-01T15:30:45.287Z","modified_at":"2024-09-17T02:02:16.928Z","summary":"Prototype Pollution","details":"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)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2022-22143"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2340604"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880"}]},{"provider":"nvd","source_id":"CVE-2022-22143","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143","severity":[],"affected":[{"ecosystem":"NVD","package":"mozilla:convict","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.2.2"}]}],"fixed":["6.2.2"],"provider":"nvd","source":"CVE-2022-22143","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-x2w5-725j-gf2g","relation":"self","url":"https://osv.dev/vulnerability/GHSA-x2w5-725j-gf2g","license":"CC-BY-4.0","published_at":"2022-04-20T16:21:03Z","modified_at":"2026-09-10T03:49:19.385784Z","summary":"Prototype Pollution in convict","details":"### Impact\n\n* An attacker can inject attributes that are used in other components\n* An attacker can override existing attributes with ones that have incompatible type, which may lead to a crash.\n\nThe 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.\n\n### Patches\n\nThe problem is patched in `convict@6.2.3`. Users should upgrade to `convict@6.2.3`.\n\n### Workarounds\n\nNo way for users to fix or remediate the vulnerability without upgrading\n\n### References\n\n* https://www.huntr.dev/bounties/1-npm-convict/\n* #384\n* 3b86be087d8f14681a9c889d45da7fe3ad9cd880\n* 1ea0ab19c5208f66509e1c43b0d0f21c1fd29b75\n\n### For more information\n\nIf you have any questions or comments about this advisory: \nadd your question as a comment in #384","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-x2w5-725j-gf2g"}],"affected":[{"ecosystem":"npm","package":"convict","purl":"pkg:npm/convict","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.2.3"}]}],"fixed":["6.2.3"],"provider":"osv","source":"GHSA-x2w5-725j-gf2g","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/pull/384"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880"},{"type":"WEB","url":"https://github.com/mozilla/node-convict"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/releases/tag/v6.2.2"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2340604"},{"type":"WEB","url":"https://www.huntr.dev/bounties/1-npm-convict"}]},{"provider":"redhat-vex","source_id":"CVE-2022-22143","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-22143","license":"CC-BY-4.0","published_at":"2022-05-01T00:00:00Z","modified_at":"2022-12-08T23:33:00Z","summary":"convict: Prototype Pollution in convict","details":"A flaw was found in convict. This flaw allows an attacker to inject attributes used in other components and override existing attributes with ones that have an incompatible type, leading to a crash.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-22143"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-22143"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 3","cpe":"cpe:/a:redhat:advanced_cluster_security:3","status":"not_affected","packages":["advanced-cluster-security/rhacs-docs-rhel8","advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-rhel8-operator","advanced-cluster-security/rhacs-roxctl-rhel8"],"package_count":4,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-22143"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-22143.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-22143"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2080845"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-22143"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143"},{"type":"WEB","url":"https://github.com/advisories/GHSA-x2w5-725j-gf2g"}]}],"references":[{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-CONVICT-2340604"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/blob/5eb1314f85346760a3c31cb14510f2f0af11d0d3/packages/convict/src/main.js%23L569"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/commit/3b86be087d8f14681a9c889d45da7fe3ad9cd880"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/security/advisories/GHSA-x2w5-725j-gf2g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/pull/384"},{"type":"WEB","url":"https://github.com/mozilla/node-convict"},{"type":"WEB","url":"https://github.com/mozilla/node-convict/releases/tag/v6.2.2"},{"type":"WEB","url":"https://www.huntr.dev/bounties/1-npm-convict"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-22143.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-22143"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2080845"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-22143"},{"type":"WEB","url":"https://github.com/advisories/GHSA-x2w5-725j-gf2g"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-22143","url":"https://www.cve.org/CVERecord?id=CVE-2022-22143","license":"CC-BY-4.0","modified_at":"2024-09-17T02:02:16.928Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-22143","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22143","relation":"self"},{"provider":"osv","source_id":"GHSA-x2w5-725j-gf2g","url":"https://osv.dev/vulnerability/GHSA-x2w5-725j-gf2g","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:19.385784Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-22143","url":"https://access.redhat.com/security/cve/CVE-2022-22143","license":"CC-BY-4.0","modified_at":"2022-12-08T23:33:00Z","relation":"self"}]}
