CVE-2023-0163: Prototype Pollution in convict
Summary
CVE-2023-0163: convict vulnerable to Prototype Pollution. Affects convict versions < 6.2.4. Fixed in 6.2.4. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Convict is an npm package used for handling server-side configurations written by server admins. It provides a way to define configuration schemas and validate and parse configuration files. However, it is vulnerable to Prototype Pollution, a type of vulnerability where an attacker can inject attributes that are used in other components or override existing attributes with incompatible types. This can lead to various security issues and crashes.
Vulnerability Detail
The Prototype Pollution vulnerability in convict allows an attacker to inject malicious JavaScript code into config files, potentially compromising the server. By manipulating the configuration, an attacker can modify the behavior of the application, leading to unauthorized access, data leaks, or denial of service. This vulnerability is rated as HIGH severity with a CVSS score of 8.4.
How To Fix
Latest published version: 6.2.5 as of 23 Oct 2026
npm install convict@6.2.5
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
6.2.4
This is the first release that contains the fix.
npm install convict@6.2.4
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. Users must upgrade to the fixed version to mitigate the risk.
Conclusion
The Prototype Pollution vulnerability in the convict package can have serious security implications for applications using it. It is crucial to upgrade to version 6.2.4 or later to mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for convict →
FAQ
Prototype Pollution is a vulnerability that allows an attacker to modify the prototype of an object, leading to unexpected behavior and potential security issues.
An attacker can inject malicious attributes into config files, which can be used to modify the behavior of the application or cause crashes.
Yes, this vulnerability can be exploited remotely if the application allows remote access to the configuration files.
No, only versions prior to 6.2.4 are affected. Users should upgrade to the latest version to ensure they are protected.
There is no evidence of active exploitation of this vulnerability at the moment. However, it is recommended to upgrade to the fixed version as a precautionary measure.
References
Related vulnerabilities
Recent vulnerabilities recorded for convict.