CVE-2022-5582: Malicious code in random-vouchercode-generator (npm)
Summary
MAL-2022-5582: Malicious code in random-vouchercode-generator (npm). Affected versions are not published. No fix is published. 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
The random-vouchercode-generator is an npm package that generates random voucher codes. It is commonly used in applications that require the generation of unique codes for promotions, discounts, or other purposes. This package is vulnerable to a malicious code injection, which compromises the security of any system that has it installed or running.
Vulnerability Detail
The vulnerability originates from a specific version of the random-vouchercode-generator package, which contains malicious code. Once installed or running, this package gives full control of the affected computer to an outside entity. As a result, all secrets and keys stored on that computer should be rotated immediately from a different computer. Removing the package may not guarantee the removal of all malicious software resulting from its installation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall random-vouchercode-generator
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to follow the steps mentioned in the 'how_to_fix' section to mitigate the risk effectively.
Conclusion
The random-vouchercode-generator npm package is vulnerable to a malicious code injection, which compromises the security of the affected system. To mitigate the risk, it is crucial to rotate all secrets and keys, remove the package, and conduct a thorough security audit. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for random-vouchercode-generator →
FAQ
random-vouchercode-generator is an npm package used for generating random voucher codes in applications.
The vulnerability allows an outside entity to gain full control of the affected computer, compromising the security of all stored secrets and keys.
If you have random-vouchercode-generator installed, it is crucial to rotate all secrets and keys stored on the affected computer from a different, secure computer. Additionally, remove the package and conduct a thorough security audit.
No, there is no known workaround for this vulnerability. It is essential to follow the steps mentioned in the 'how_to_fix' section.
Removing the random-vouchercode-generator package may not guarantee the removal of all malicious software. It is recommended to conduct a thorough security audit to ensure no other malicious software or backdoors are present.