Critical Malicious Code Vulnerability in @vietmoney/react-native-htmlview Package
Summary
MAL-2025-192996: Malicious code in @vietmoney/react-native-htmlview (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-htmlview package is a popular npm library used for rendering HTML content in React Native applications. It provides developers with an easy way to display formatted text and images. However, this package has been compromised, leading to significant security concerns for any application that relies on it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the @vietmoney/react-native-htmlview package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code is classified under CWE-506, indicating that it contains embedded malicious code. Users are advised to treat any system with this package as compromised and take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @vietmoney/react-native-htmlview
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, the best workaround is to uninstall the package entirely. You can do this by running the command: npm uninstall @vietmoney/react-native-htmlview. This action will help mitigate the risks associated with the malicious code.
Conclusion
The @vietmoney/react-native-htmlview package has been identified as containing malicious code that poses a serious security threat. Users are strongly advised to uninstall the package and take necessary precautions to secure their systems. Monitoring tools like Vulert can assist in identifying vulnerabilities in your applications.
See every vulnerability recorded for @vietmoney/react-native-htmlview →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on your system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without any signup.
As of now, there is no patched version available. It is recommended to uninstall the package until further notice.
Failure to address this vulnerability can lead to unauthorized access to sensitive data, potentially compromising your entire system.
Even if you don't store sensitive information, it is still advisable to remove the package due to the inherent risks associated with the malicious code.