Malicious code in commodities (npm) - MAL-2024-2001
Summary
MAL-2024-2001: Malicious code in commodities (npm). Affects commodities versions 0.4.2. 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
Commodities is an npm package that provides functionality for managing and working with various commodities. It is widely used in JavaScript projects for handling common tasks related to commodities. However, the package has been found to contain malicious code, posing a security risk to applications that depend on it.
Vulnerability Detail
The vulnerability identified in the commodities package (npm) is due to the presence of malicious code. The code was discovered by ReversingLabs and reported as MAL-2024-2001. The malicious code can potentially lead to unauthorized access, data breaches, or other malicious activities. The specific details of the code and its impact are not provided in the vulnerability report.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall commodities
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
No workaround is provided for this vulnerability. It is crucial to update the package to a secure version as soon as possible.
Conclusion
The commodities package (npm) has been found to contain malicious code, posing a security risk to applications that depend on it. It is important for developers to update their project dependencies to use a secure version of the package that does not contain the malicious code.
See every vulnerability recorded for commodities →
FAQ
The commodities package is an npm package used for managing and working with various commodities in JavaScript projects.
The specific impact of the malicious code is not provided in the vulnerability report. However, it can potentially lead to unauthorized access, data breaches, or other malicious activities.
The vulnerability was discovered by ReversingLabs, a security company.
To fix the vulnerability, update the commodities package to a secure version that does not contain the malicious code.
No workaround is provided for this vulnerability. It is crucial to update the package to a secure version as soon as possible.