Malicious Code Detected in aplay-audio Package - Security Alert
Summary
MAL-2025-14652: Malicious code in aplay-audio (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 aplay-audio package is an npm library designed for audio playback in Node.js applications. It allows developers to easily integrate audio functionalities into their projects. However, this package has been identified to contain malicious code, posing a significant risk to users and their applications.
Vulnerability Detail
The vulnerability in the aplay-audio package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code can potentially lead to unauthorized access, data breaches, or other harmful actions within the affected systems. The issue was introduced in version 0 and affects all subsequent versions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aplay-audio
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 measure, consider using alternative audio playback libraries that do not have known vulnerabilities. Some popular alternatives include 'play-sound' or 'node-aplay'. You can install them using npm as follows: npm install play-sound or npm install node-aplay.
Conclusion
The aplay-audio package has been found to contain malicious code that poses a significant security risk. Users are advised to remove the package and consider alternatives while monitoring for updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.
See every vulnerability recorded for aplay-audio →
FAQ
The aplay-audio package is an npm library used for audio playback in Node.js applications.
The malicious code was introduced in version 0 of the aplay-audio package and affects all versions thereafter.
Using aplay-audio can lead to unauthorized access, data breaches, and other security issues due to the embedded malicious code.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
Immediately remove the aplay-audio package from your project and consider using alternative libraries for audio playback.