Critical Malicious Code Vulnerability in @strapbuild/react-native-perspective-image-cropper-2 Package
Summary
MAL-2025-190826: Malicious code in @strapbuild/react-native-perspective-image-cropper-2 (npm). Affects @strapbuild/react-native-perspective-image-cropper-2 versions 0.4.7. 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 @strapbuild/react-native-perspective-image-cropper-2 package is a tool used in React Native applications for cropping images with perspective transformations. It is designed to enhance the user experience by providing advanced image manipulation capabilities. However, this package has been identified as containing malicious code, which poses a significant risk to any system that has it installed.
Vulnerability Detail
The vulnerability originates from the presence of embedded malicious code within the @strapbuild/react-native-perspective-image-cropper-2 package. This code can compromise the security of any computer running the package, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code means that once installed, the package can grant full control of the system to an external entity, making it imperative for users to act swiftly to mitigate potential damage.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @strapbuild/react-native-perspective-image-cropper-2
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 workarounds to safely use the affected package without risking system security. The only recommended action is to uninstall the package and monitor your system for any signs of compromise.
Conclusion
The discovery of malicious code in the @strapbuild/react-native-perspective-image-cropper-2 package highlights the importance of vigilance in managing dependencies. Users must act quickly to remove the affected package and secure their systems to prevent unauthorized access and data breaches.
See every vulnerability recorded for @strapbuild/react-native-perspective-image-cropper-2 →
FAQ
Immediately uninstall the package using the command: npm uninstall @strapbuild/react-native-perspective-image-cropper-2 and rotate any sensitive information stored on the system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Failing to remove the package can lead to unauthorized access to your system, potential data breaches, and loss of sensitive information.
No, there is currently no patched version available for this package. The best course of action is to uninstall it.
Vulert monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, providing real-time insights without needing access to the code.