Malicious Code Detected in EventRelayEmitter Package - Security Alert
Summary
MAL-2025-19930: Malicious code in EventRelayEmitter (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
EventRelayEmitter is an npm package designed for event handling and relay functionality in JavaScript applications. It allows developers to efficiently manage and emit events across different components. However, the package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the EventRelayEmitter package stems from the inclusion of malicious code that can compromise the security of applications using this package. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall EventRelayEmitter
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, consider removing the EventRelayEmitter package from your project until a secure version is released. You can do this by running: 'npm uninstall EventRelayEmitter'. This will help mitigate the risk of exploitation while you await a fix.
Conclusion
The EventRelayEmitter package has been identified to contain malicious code, posing serious security risks to applications that utilize it. Immediate action is required to update or remove the package to safeguard your application. Stay informed about updates and utilize tools like Vulert to monitor vulnerabilities effectively.
See every vulnerability recorded for EventRelayEmitter →
FAQ
The malicious code can potentially allow unauthorized access to sensitive data and compromise application security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider removing the package from your project as a temporary measure to mitigate risks.
While specific exploits have not been detailed, the presence of malicious code indicates a high risk of potential exploitation.
Detailed information about the vulnerability can be found on the GitHub repository of the malicious package at https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eventrelayemitter/MAL-2025-19930.json.