Critical Malicious Code Vulnerability in @alexadark/gatsby-theme-events Package
Summary
MAL-2025-191182: Malicious code in @alexadark/gatsby-theme-events (npm). Affects @alexadark/gatsby-theme-events versions 1.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 @alexadark/gatsby-theme-events package is an npm library designed for developers using Gatsby to create event-themed websites. It provides functionalities to manage and display events efficiently. However, this package has been compromised, making it susceptible to severe security threats, including unauthorized access to sensitive information.
Vulnerability Detail
The vulnerability originates from a malicious payload introduced by 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 establish persistence through GitHub actions. The malicious code may also lead to the destruction of the user's home directory, making it a critical threat to any system running this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @alexadark/gatsby-theme-events
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
Currently, there are no effective workarounds to mitigate the risks posed by this vulnerability. The best course of action is to uninstall the package and monitor your system for any unusual activity.
Conclusion
The @alexadark/gatsby-theme-events package has been compromised by a malicious worm, posing significant security risks to any system using it. Immediate action is required to uninstall the package and secure sensitive information. Utilizing tools like Vulert can help in monitoring for such vulnerabilities in the future.
See every vulnerability recorded for @alexadark/gatsby-theme-events →
FAQ
You should immediately uninstall the package and rotate any sensitive credentials stored on your system.
The malicious code can steal sensitive tokens and credentials, potentially compromising your GitHub repositories and other accounts.
Recovery involves uninstalling the package, rotating all credentials, and monitoring your system for any signs of further compromise.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software by analyzing your package-lock.json file.
Vulert is a tool that monitors open-source vulnerabilities in your software without requiring code access or installation. You can check your application's vulnerability status using the Vulert playground.