Is ng2-file-upload safe?
Versions 7.0.2, 7.0.3, 8.0.1, 8.0.2, 8.0.3 and 9.0.1 of ng2-file-upload were compromised (credential stealer). Other versions are not flagged as malicious.
Do not install the 6 versions listed below
CRITICALCredential stealer. Added to CyberXYZ 2025-09-15, OSV malicious-package feed (Google / OpenSSF).
The package ng2-file-upload was found have been identified as potentially malicious due to the inclusion of a minified postinstall script. It is considered suspicious because: The script appears to attempt to steal access tokens for npm, GitHub, AWS, GCP, etc. There is no changelog or new tags in the GitHub repository associated with these releases. The packages were uploaded by a service account: https://www.npmjs.com/~ngxbs Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it. This package was compromised by the Shai-Hulud NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub before propogating itself to NPM packages the user owns.
Reported by GitHub Advisory Database and Google Open Source Security via OSV.
- mitre ttp
- T1056
- Malicious
- 7.0.2, 7.0.3, 8.0.1, 8.0.2, 8.0.3, 9.0.1
- Move to
- 9.0.0 newest 9.x release, no known advisory8.0.0 newest 8.x release, no known advisory7.0.1 newest 7.x release, no known advisory12.0.0 current release, no known advisory
If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.
npm install ng2-file-upload@9.0.0
1 direct dependencies
none carry a known advisory
0 packages depend on it
an advisory here reaches each of them
Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
Checked 2026-10-31 at 00:01 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.