Malicious Code Detected in ac-array Package - Security Alert
Summary
MAL-2026-775: Malicious code in ac-array (npm). Affected versions are not published. 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 ac-array package is a utility library in the npm ecosystem designed for handling arrays in JavaScript applications. It provides various functionalities that simplify array manipulations. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability originates from the ac-array package, which has been identified to contain malicious code. This code can potentially compromise the security of applications that depend on this package, leading to unauthorized access, data breaches, or other malicious activities. The malicious code was detected by Amazon Inspector, highlighting the importance of monitoring dependencies for security threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ac-array
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 ac-array package from your project if it is not critical to your application. You can do this by executing the command: 'npm uninstall ac-array'. Alternatively, consider using a different library that offers similar functionality without the security risks.
Conclusion
The ac-array package has been identified to contain malicious code, which poses a significant security risk to applications that utilize it. It is crucial to update the package to a secure version or consider alternative solutions. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for ac-array →
FAQ
ac-array is a utility library in the npm ecosystem that provides functionalities for manipulating arrays in JavaScript applications.
The specific nature of the malicious code has not been disclosed, but it poses significant security risks to applications using the package.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities. By simply using your package-lock.json file, Vulert can help you identify if your application is affected by this vulnerability.
Yes, Vulert provides real-time monitoring for open-source vulnerabilities without requiring access to your code or installation. You can check your application's status using the Vulert playground.
If an immediate update is not possible, consider removing the ac-array package or replacing it with a safer alternative until a secure version is available.