Malicious Code Detected in braingym Package - Security Alert
Summary
MAL-2025-16067: Malicious code in braingym (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 braingym package is an npm library designed for creating and managing brain training exercises. It offers various functionalities aimed at enhancing cognitive skills through interactive tasks. However, recent findings have revealed that this package contains malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the braingym package originates from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other harmful actions within the affected systems. Users of braingym are strongly advised to take immediate action to mitigate potential risks associated with this vulnerability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall braingym
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 measure, users can remove the braingym package from their projects until a secure version is released. This can be done using the command: npm uninstall braingym. Alternatively, consider using a different package that offers similar functionalities without the associated risks.
Conclusion
The discovery of malicious code in the braingym package highlights the importance of vigilance in managing open-source dependencies. Users are urged to take immediate action by updating or removing the package to protect their applications from potential threats.
See every vulnerability recorded for braingym →
FAQ
braingym is an npm library designed for creating brain training exercises aimed at enhancing cognitive skills.
The malicious code found in braingym can lead to unauthorized access and potential data breaches in applications using this package.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities. Check your application using the Vulert playground at Vulert Scanner.
Currently, there is no patched version available. Users should monitor the package repository for updates and apply them as soon as they are released.
If immediate removal is not possible, consider isolating the affected code and implementing additional security measures to mitigate risks until a secure version is available.