Critical Malicious Code Vulnerability in react-qrcode-icon Package

react-qrcode-icon Updated 02 Oct 2025

Summary

30/07/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6371: Malicious code in react-qrcode-icon (npm). Affected versions are not published. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback