Malicious Code Detected in Correg Package (npm)
Summary
MAL-2025-17588: Malicious code in correg (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 'correg' package is a JavaScript library available on the npm ecosystem, designed for various functionalities within web applications. It is commonly used for tasks such as data validation and manipulation. However, recent findings have revealed that this package contains malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the 'correg' package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may 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, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall correg
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
If an immediate update is not feasible, consider removing the 'correg' package from your project and replacing it with a trusted alternative that provides similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the 'correg' package highlights the importance of maintaining secure dependencies in software development. Developers are urged to update their packages promptly and consider alternatives if necessary to safeguard their applications.
See every vulnerability recorded for correg →
FAQ
The 'correg' package is a JavaScript library used in web applications for data validation and manipulation.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Consider removing the 'correg' package and replacing it with a trusted alternative until you can perform the update.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated to the latest secure versions.