Malicious Code Injection in materialize-docusaurus-oauth-centaurus Package
Summary
MAL-2025-187941: Malicious code in materialize-docusaurus-oauth-centaurus (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 materialize-docusaurus-oauth-centaurus package is part of the npm ecosystem, designed to facilitate OAuth integration within Docusaurus applications. It aims to streamline authentication processes for developers. However, this package has been identified as part of a malicious campaign that exploits npm's package publishing system, leading to significant security risks.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the materialize-docusaurus-oauth-centaurus package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The intent is to inflate developer reputation scores through the automatic generation and publication of derivative packages. This behavior can lead to the pollution of the npm registry, making it difficult for developers to trust legitimate packages and potentially exposing applications to further vulnerabilities.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall materialize-docusaurus-oauth-centaurus
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 by executing: npm uninstall materialize-docusaurus-oauth-centaurus. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The materialize-docusaurus-oauth-centaurus package has been compromised with malicious code that poses significant risks to developers and their applications. It is crucial to take immediate action by updating or removing the package to safeguard your projects. Utilizing tools like Vulert can help monitor and alert you to such vulnerabilities in real-time.
See every vulnerability recorded for materialize-docusaurus-oauth-centaurus →
FAQ
The vulnerability involves malicious code that alters package metadata and publishes derivative packages to inflate developer reputation scores.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without requiring any signup.
If immediate updates are not possible, consider uninstalling the package and using alternative solutions until a secure version is available.
While specific exploits have not been detailed, the malicious behavior of the package can lead to further security issues, including the potential for unauthorized access to applications.
Regularly audit your dependencies using tools like Vulert, and stay informed about vulnerabilities in the packages you use. Always prefer well-maintained and widely used packages.