Malicious Code Detected in @nytt/sass-utils: Security Risk Alert
Summary
MAL-2025-6033: Malicious code in @nytt/sass-utils (npm). Affects @nytt/sass-utils versions >= 2.0.0. 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 @nytt/sass-utils package is a utility library designed for working with Sass, a popular CSS preprocessor. It provides various functions and mixins to enhance the development experience for web designers and developers. However, this package has been identified to communicate with a domain associated with malicious activity, posing a significant security risk to applications that utilize it.
Vulnerability Detail
The vulnerability arises from the package's communication with a domain linked to malicious activities. This could lead to data breaches, unauthorized access, or the execution of harmful code within applications that depend on this package. The issue was introduced in version 2.0.0 and has been classified as a serious threat due to its potential impact on user data and application integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @nytt/sass-utils
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 may consider removing the @nytt/sass-utils package from your project until a secure version is released. You can do this by executing: npm uninstall @nytt/sass-utils. Alternatively, you can replace it with a similar library that does not have known vulnerabilities.
Conclusion
The @nytt/sass-utils package has been identified as having a serious vulnerability due to its communication with a malicious domain. It is crucial for developers to take immediate action by updating or removing the 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 @nytt/sass-utils →
FAQ
The vulnerability involves the package communicating with a domain associated with malicious activity, which can compromise application security.
You can use Vulert, which monitors open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can alert you to any vulnerabilities in real-time. You can also check your application using the Vulert playground without signing up.
If an immediate update is not possible, consider removing the package or replacing it with an alternative library that does not have known vulnerabilities.
As of now, it is essential to check the package repository for any updates or patches that may address this vulnerability.
Failing to address this vulnerability could lead to data breaches, unauthorized access, and the execution of malicious code, jeopardizing the security of your application and user data.