Malicious Code Injection in yaml-notify-authorize-code-web Package
Summary
MAL-2025-190428: Malicious code in yaml-notify-authorize-code-web (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 yaml-notify-authorize-code-web package is part of the npm ecosystem, typically used for handling YAML notifications in web applications. However, it has been identified as part of a malicious campaign that floods the npm registry with derivative packages. These packages are designed to inflate developer reputation scores through automated publishing scripts, which can lead to significant security risks.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the yaml-notify-authorize-code-web package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The continuous republishing of these variants can pollute the npm registry, making it difficult for developers to trust the integrity of packages. The potential ramifications include unauthorized access to sensitive data, compromised application integrity, and a general increase in the risk of supply chain attacks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yaml-notify-authorize-code-web
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 yaml-notify-authorize-code-web package from your project until a secure version is released. This can be done using the command: npm uninstall yaml-notify-authorize-code-web. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The yaml-notify-authorize-code-web package has been identified as containing malicious code that can compromise the security of applications using it. It is essential to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in your projects.
See every vulnerability recorded for yaml-notify-authorize-code-web →
FAQ
It is an npm package used for handling YAML notifications in web applications, but it has been compromised with malicious code.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Using compromised packages can lead to unauthorized access to your application, data breaches, and overall security vulnerabilities.
Regularly update your dependencies, use tools like Vulert for monitoring, and audit your package-lock.json file for vulnerabilities.
Immediately uninstall the package and check for any unauthorized changes in your application. Update to a secure version if available.