Malicious Code Detected in custom-property-analyzer Package
Summary
MAL-2025-17835: Malicious code in custom-property-analyzer (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 custom-property-analyzer package is an npm library designed for analyzing CSS custom properties. It provides developers with tools to manage and manipulate CSS variables effectively. However, this package has been found to contain malicious code, which poses a significant risk to users and their applications.
Vulnerability Detail
The vulnerability in the custom-property-analyzer package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code can 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.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall custom-property-analyzer
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 using alternative packages that provide similar functionality without the associated risks. For example, you can use 'postcss-custom-properties' as a safer alternative for managing CSS custom properties.
Conclusion
The discovery of malicious code in the custom-property-analyzer package highlights the importance of vigilance in managing open-source dependencies. Users are advised to remove the affected package and consider alternatives to ensure the security of their applications.
See every vulnerability recorded for custom-property-analyzer →
FAQ
It is an npm library used for analyzing and managing CSS custom properties.
The malicious code was introduced in version 0 of the package and affects all subsequent versions.
The risks include unauthorized access, data breaches, and potential harm to applications using the compromised package.
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.
If immediate removal is not possible, consider using a safer alternative package until you can fully address the vulnerability.