Critical Malicious Code Vulnerability in @vietmoney/react-native-vnpay-merchant Package
Summary
MAL-2025-193002: Malicious code in @vietmoney/react-native-vnpay-merchant (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 @vietmoney/react-native-vnpay-merchant package is an npm library designed for integrating VNPAY payment solutions into React Native applications. It provides developers with tools to facilitate secure payment transactions. However, this package has been identified as containing malicious code, posing significant security risks to any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the @vietmoney/react-native-vnpay-merchant package. This code can compromise any computer that has the package installed, potentially allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of this code has been confirmed by security sources, indicating that systems running this package should be considered fully compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @vietmoney/react-native-vnpay-merchant
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 other than removing the package entirely. It is advisable to monitor your systems for any signs of compromise and take necessary security measures.
Conclusion
The @vietmoney/react-native-vnpay-merchant package has been identified as containing malicious code that compromises the security of any system using it. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring of dependencies is essential to prevent future vulnerabilities.
See every vulnerability recorded for @vietmoney/react-native-vnpay-merchant →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Regularly monitor your dependencies using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potentially resulting in data breaches and financial loss.
It is advisable to exercise caution and conduct thorough security reviews of other packages from the same author before using them.