Critical Malicious Code Vulnerability in centersvg Package
Summary
MAL-2025-16725: Malicious code in centersvg (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 centersvg package is an npm library designed for manipulating and rendering SVG (Scalable Vector Graphics) files in web applications. It provides developers with tools to easily create and modify SVG elements programmatically. However, the package has been found to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the centersvg package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may allow unauthorized access to sensitive data, execute arbitrary commands, or facilitate other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for developers to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall centersvg
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, consider removing the centersvg package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall centersvg'. Additionally, review your codebase for any dependencies that may rely on this package and assess alternative libraries that provide similar functionality without the associated risks.
Conclusion
The centersvg package has been identified as containing malicious code, posing serious security risks to applications that utilize it. Developers are urged to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.
See every vulnerability recorded for centersvg →
FAQ
centersvg is an npm library used for manipulating and rendering SVG files in web applications.
The malicious code can compromise application security, potentially allowing unauthorized access to sensitive data or executing arbitrary commands.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a temporary measure, consider uninstalling the centersvg package and looking for alternative libraries that provide similar functionality.
Currently, there is no specific patched version mentioned. It is crucial to monitor the official repository for updates and apply them as soon as they are released.