Malicious Code Detected in ac-dom-events Package - Security Alert
Summary
MAL-2026-777: Malicious code in ac-dom-events (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-dom-events package is a JavaScript library used in web development to handle DOM events efficiently. It provides a set of utilities for managing event listeners and interactions within the Document Object Model (DOM). However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the ac-dom-events package, as identified by Amazon Inspector. This code can potentially compromise the integrity of applications using the package, leading to unauthorized access, data breaches, or other malicious activities. The vulnerability affects all versions of the package starting from its introduction, making it critical for developers to address this issue promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ac-dom-events
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 replace the ac-dom-events package with an alternative library that provides similar functionality without the associated risks. For example, consider using 'event-listener-polyfill' or 'dom-event-handler' as substitutes.
Conclusion
The discovery of malicious code in the ac-dom-events package highlights the importance of regular security assessments and prompt action to mitigate vulnerabilities. Developers are encouraged to remove the affected package and monitor their projects for any potential threats.
See every vulnerability recorded for ac-dom-events →
FAQ
ac-dom-events is a JavaScript library designed to simplify event handling in web applications.
The malicious code was identified by Amazon Inspector during a routine security assessment of the package.
Using the compromised ac-dom-events package can lead to security vulnerabilities, including unauthorized access to sensitive data and potential exploitation by attackers.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file. Visit https://vulert.com for more information.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.