Malicious Code Detected in ngf-attachment-item-view: Version 1.1.22 Compromised
Summary
MAL-2025-5843: Malicious code in ngf-attachment-item-view (npm). Affects ngf-attachment-item-view versions >= 1.1.23. 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 'ngf-attachment-item-view' package is an npm library designed to facilitate the viewing and management of attachment items in web applications. It is commonly used for handling file uploads and previews in user interfaces. However, version 1.1.22 has been identified as malicious, posing a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the package's communication with a domain associated with malicious activities. This could lead to data exfiltration, unauthorized access, or other harmful actions against users and systems that integrate this package. The malicious behavior was identified by the OpenSSF Package Analysis project, which flagged the specific version due to its harmful interactions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ngf-attachment-item-view
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 can remove the 'ngf-attachment-item-view' package from your project until a patched version is confirmed. Use the command: 'npm uninstall ngf-attachment-item-view'. Consider using alternative packages that provide similar functionality without the security risks.
Conclusion
The 'ngf-attachment-item-view' package version 1.1.22 has been identified as malicious due to its communication with harmful domains. It is essential to update or remove this package to protect your application from potential threats. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for ngf-attachment-item-view →
FAQ
The package communicates with a domain linked to malicious activities, which may lead to data breaches or unauthorized access.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Currently, version 1.1.22 is flagged as malicious. It is recommended to check for updates or alternative packages until a safe version is released.
If immediate updates are not possible, consider removing the package and using alternatives until a safe version is available.
Vulert uses the package-lock.json file to monitor and alert for vulnerabilities in real-time, ensuring your application remains secure.