Critical Malicious Code Vulnerability in @fishingbooker/react-raty Package
Summary
MAL-2025-191223: Malicious code in @fishingbooker/react-raty (npm). Affects @fishingbooker/react-raty versions 2.0.1. 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 @fishingbooker/react-raty package is a JavaScript library used for creating star rating components in React applications. It allows developers to easily integrate rating features into their applications, enhancing user experience. However, this package has been compromised, leading to severe security implications for any application that utilizes it.
Vulnerability Detail
The vulnerability stems from a malicious code injection attributed to the Sha1-Hulud: The Second Coming NPM worm. This worm is designed to steal tokens and credentials from affected systems and publish them to GitHub. It can propagate itself to other NPM packages owned by the user and may even destroy the user's home directory. Any system with this package installed is considered fully compromised, necessitating immediate action to secure sensitive information.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @fishingbooker/react-raty
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 workaround, ensure that any secrets or keys stored on the compromised system are rotated immediately from a secure, unaffected machine. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The @fishingbooker/react-raty package has been compromised, posing significant security risks to any application using it. Immediate action is required to remove the package and secure sensitive information. Utilizing tools like Vulert can help monitor and prevent future vulnerabilities.
See every vulnerability recorded for @fishingbooker/react-raty →
FAQ
The vulnerability involves malicious code that can steal sensitive information and propagate itself to other packages.
You can check if your application is affected by using Vulert, which monitors vulnerabilities in real-time. Visit Vulert Scanner to analyze your package-lock.json.
Immediately remove the package and rotate any sensitive credentials stored on the affected system.
Regularly monitor your dependencies for vulnerabilities using tools like Vulert and keep your packages updated.
Failure to address this vulnerability can lead to unauthorized access to sensitive data, loss of control over your systems, and potential data destruction.