Malicious Code Injection in hadron-postgres-phylogenetics-loop Package
Summary
MAL-2025-187260: Malicious code in hadron-postgres-phylogenetics-loop (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 hadron-postgres-phylogenetics-loop package is part of the npm ecosystem, designed for handling PostgreSQL interactions in phylogenetics applications. It is typically used by developers to manage data related to evolutionary biology. However, this package has been compromised, making it susceptible to malicious activities that can affect the integrity of the npm registry and the applications relying on it.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the hadron-postgres-phylogenetics-loop package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names to inflate developer reputation scores. The malicious code is part of a broader campaign that aims to pollute the npm registry by continuously republishing these variants, which can lead to security risks for developers and users relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hadron-postgres-phylogenetics-loop
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 affected package from your project until a secure version is released. Use the following command to uninstall the package: npm uninstall hadron-postgres-phylogenetics-loop.
Conclusion
The hadron-postgres-phylogenetics-loop package has been compromised with malicious code that poses significant risks to developers and users. It is crucial to take immediate action by updating or removing the package to safeguard your applications. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.
See every vulnerability recorded for hadron-postgres-phylogenetics-loop →
FAQ
The impact includes potential exposure to malicious code that can compromise application integrity and security, leading to unauthorized access or data manipulation.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities. By simply analyzing your package-lock.json file, it can identify if your application is affected by this vulnerability.
To prevent future vulnerabilities, regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated on security advisories related to the packages you use.
If immediate updates are not possible, consider removing the package temporarily and looking for alternative solutions that do not pose a security risk.
More information can be found in the vulnerability details provided by sources like Amazon Inspector and the npm registry.