Critical Malicious Code Vulnerability in react-qrcode-icon Package
Summary
MAL-2025-6371: Malicious code in react-qrcode-icon (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 react-qrcode-icon package is an npm library designed to generate QR code icons for React applications. It allows developers to easily integrate QR code functionality into their projects, enhancing user interaction and accessibility. However, this package has been identified to contain malicious code that compromises the security of any system it is installed on.
Vulnerability Detail
The vulnerability arises from embedded malicious code within the react-qrcode-icon package. This code can lead to complete system compromise, allowing unauthorized access to sensitive information such as secrets and keys stored on the affected computer. The malicious nature of the code is confirmed by its classification under CWE-506, indicating that it appears to be intentionally harmful. Users who have this package installed should consider their systems fully compromised, as the removal of the package may not eliminate all traces of the malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-qrcode-icon
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
Currently, there are no effective workarounds to mitigate the risks posed by this vulnerability other than removing the package entirely from your project.
Conclusion
The react-qrcode-icon package has been identified as containing malicious code that poses significant security risks. Users are strongly advised to remove the package immediately and take necessary precautions to secure their systems. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for react-qrcode-icon →
FAQ
You should remove the react-qrcode-icon package from your project immediately to prevent any potential security breaches.
You can use Vulert to monitor and alert you for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.
Leaving the react-qrcode-icon package installed can lead to unauthorized access to sensitive information and potential control over your system by malicious actors.
If your system has been compromised, it is recommended to rotate all secrets and keys stored on the affected computer and perform a thorough security audit.
While removing the package is essential, there is no guarantee that all malicious software resulting from its installation will be removed. A full system check is advised.