Malicious Code Injection in centaurus-fork-webpack-react-bootstrap Package
Summary
MAL-2025-140545: Malicious code in centaurus-fork-webpack-react-bootstrap (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 centaurus-fork-webpack-react-bootstrap package is a JavaScript library used in web development, particularly for integrating React with Bootstrap through Webpack. It is designed to streamline the development process by providing pre-configured settings and components. However, this package has been compromised, making it susceptible to malicious code injection that affects its integrity and security.
Vulnerability Detail
This vulnerability originates from a malicious payload embedded within the centaurus-fork-webpack-react-bootstrap package. It is part of a broader campaign that exploits npm packages to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry and potential security risks for developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall centaurus-fork-webpack-react-bootstrap
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 centaurus-fork-webpack-react-bootstrap package from your project by executing: npm uninstall centaurus-fork-webpack-react-bootstrap. Consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The centaurus-fork-webpack-react-bootstrap package has been compromised with malicious code that poses significant security risks. It is crucial for developers to take immediate action by updating or removing the affected package to safeguard their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for centaurus-fork-webpack-react-bootstrap →
FAQ
The impact includes potential exposure to malicious code, which can compromise application security and integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application using the Vulert playground at Vulert Scanner.
If an immediate update is not possible, consider removing the package and using alternatives until a secure version is available.
The malicious code modifies the package.json file, removes private flags, and publishes variants with random names to pollute the npm registry.
More information can be found in the vulnerability report on the official GitHub repository or through security advisories related to npm packages.