Malicious Code Detected in azure-postgresql-auth: npm Package Vulnerability
Summary
MAL-2026-975: Malicious code in azure-postgresql-auth (npm). Affects azure-postgresql-auth versions 1.1.2 – 1.1.4. 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 'azure-postgresql-auth' package is an npm library designed to facilitate authentication processes for Azure PostgreSQL databases. It provides developers with tools to streamline user authentication, ensuring secure access to database resources. However, version 1.1.4 of this package has been flagged for malicious behavior, raising significant security concerns for users relying on it.
Vulnerability Detail
The vulnerability in 'azure-postgresql-auth' arises from its communication with a domain linked to malicious activities and the execution of commands that can compromise system integrity. This behavior poses serious risks, including unauthorized access to sensitive data and potential system exploitation. The malicious nature of this package was identified by the OpenSSF Package Analysis project, which highlighted its harmful actions and the need for immediate attention from users.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall azure-postgresql-auth
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, users are advised to remove the 'azure-postgresql-auth' package from their projects until a secure version is released. You can uninstall the package using the following command:
npm uninstall azure-postgresql-auth
Conclusion
The 'azure-postgresql-auth' package has been identified as malicious, posing significant risks to users. Immediate action is required to mitigate these risks by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can aid in identifying vulnerabilities in your projects.
See every vulnerability recorded for azure-postgresql-auth →
FAQ
The package communicates with a domain associated with malicious activities and executes harmful commands.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should immediately uninstall the affected package and monitor for updates or patches.
Currently, the latest version flagged as malicious is 1.1.4. Users should check the npm registry for any updates or patches.
Vulert uses the package-lock.json file to monitor and alert users in real-time for open-source vulnerabilities in their software.