MAL-2025-47196 Malicious code in ng2-file-upload (npm)
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- Cloud Platforms
Description
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
-= Per source details. Do not edit below this line.=-
Source: ghsa-malware (9284a0766c145b0df3804da9be8973efeb9e8d6cd5e497a1193d0c371f206e87)
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.
Source: google-open-source-security (15ac793ec5247ccf9789c39dd4cba49f8206a6bd4b2b22ab6837d6e431bb3058)
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| npm ng2-file-upload(npm) | = 7.0.2; = 7.0.3; = 8.0.1; = 8.0.2 +4 more | after 7.0.3, 8.0.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm ng2-file-upload(npm) | >= 8.0.1, <= 8.0.3 | No fix listed |
| npm ng2-file-upload(npm) | >= 7.0.2, <= 7.0.3 | No fix listed |
| npm ng2-file-upload(npm) | = 7.0.2 | No fix listed |
| npm ng2-file-upload(npm) | = 7.0.3 | No fix listed |
| npm ng2-file-upload(npm) | = 8.0.1 | No fix listed |
| npm ng2-file-upload(npm) | = 8.0.2 | No fix listed |
| npm ng2-file-upload(npm) | = 8.0.3 | No fix listed |
| npm ng2-file-upload(npm) | = 9.0.1 | No fix listed |
References
- github.com vendor-advisory
- github.com
- www.wiz.io
- semgrep.dev
- www.aikido.dev
- www.stepsecurity.io
- socket.dev