Malicious Code Injection in @nativescript-community/ui-document-picker: A Critical Security Concern
Summary
MAL-2025-47387: Malicious code in @nativescript-community/ui-document-picker (npm). Affects @nativescript-community/ui-document-picker versions 1.1.27 – 1.1.28. 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 @nativescript-community/ui-document-picker package is a popular tool within the NativeScript ecosystem, designed to facilitate document selection in mobile applications. It provides developers with a straightforward API to integrate document picking functionality seamlessly. However, this package has recently been compromised, introducing significant security vulnerabilities that can affect applications relying on it.
Vulnerability Detail
The vulnerability stems from a compromise of the package by the Shai-Hulud NPM worm, which embeds malicious code within the package. This malicious payload is designed to steal tokens and credentials from users and publish them to GitHub. Additionally, it propagates itself to other NPM packages owned by the user, potentially leading to widespread exploitation and data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @nativescript-community/ui-document-picker
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, users can remove the affected package from their project until a secure version is confirmed. This can be done using the command: npm uninstall @nativescript-community/ui-document-picker. Additionally, consider using alternative packages that provide similar functionality without known vulnerabilities.
Conclusion
The compromise of the @nativescript-community/ui-document-picker package highlights the critical need for vigilance in managing open-source dependencies. By understanding the nature of this vulnerability and taking appropriate actions, developers can protect their applications from potential threats.
See every vulnerability recorded for @nativescript-community/ui-document-picker →
FAQ
The malicious code is designed to steal sensitive information such as tokens and credentials, which can lead to unauthorized access to user accounts and data.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By utilizing the Vulert playground, you can check if your application is affected without needing to sign up.
If immediate updates are not feasible, consider removing the package temporarily and using alternative solutions until a secure version is available.
Yes, the malicious payload has been reported to propagate itself to other NPM packages owned by the user, increasing the risk of further exploitation.
Regularly monitor your dependencies for vulnerabilities, use tools like Vulert for real-time alerts, and ensure to keep your packages updated to the latest secure versions.