Critical Malicious Code Vulnerability in react-native-gainsight-px Package
Summary
MAL-2025-6755: Malicious code in react-native-gainsight-px (npm). Affects react-native-gainsight-px versions >= 1.12.5. 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-native-gainsight-px package is a library designed for integrating Gainsight PX functionalities into React Native applications. It allows developers to enhance user engagement through analytics and in-app messaging. However, this package has been identified to communicate with a domain associated with malicious activities, posing a significant security risk to applications that utilize it.
Vulnerability Detail
The vulnerability in the react-native-gainsight-px package arises from its communication with a domain linked to malicious activities. This could lead to unauthorized data access, potential data breaches, and exploitation of user information. The issue was introduced in version 1.12.5, making it critical for users of this version to take immediate action to mitigate risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall react-native-gainsight-px
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
As a temporary workaround, you may consider removing the react-native-gainsight-px package from your project until a secure version is available. This can be done using the command: npm uninstall react-native-gainsight-px.
Conclusion
The react-native-gainsight-px package has a critical vulnerability that exposes applications to potential security risks. It is essential for developers to update to a patched version or remove the package until a fix is available. Utilizing tools like Vulert can help in monitoring vulnerabilities effectively.
See every vulnerability recorded for react-native-gainsight-px →
FAQ
It is a library for integrating Gainsight PX functionalities into React Native applications, enhancing user engagement through analytics.
The vulnerability involves the package communicating with a malicious domain, which can lead to unauthorized data access and exploitation.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Consider removing the package temporarily as a workaround until a secure version is available.
Vulert uses package-lock.json to monitor and alert in real-time for open-source vulnerabilities in your software, ensuring you stay informed.