Critical Malicious Code Vulnerability in token-discord-encryptation Package
Summary
MAL-2026-1157: Malicious code in token-discord-encryptation (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 token-discord-encryptation package is an npm module designed for encrypting tokens specifically for Discord applications. It aims to provide developers with a secure way to handle sensitive information. However, this package has been compromised, leading to severe security risks for any application utilizing it.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the token-discord-encryptation package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to secrets and keys stored on that machine. The ramifications are significant, as attackers may gain complete control over the affected system, potentially leading to data breaches and unauthorized actions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall token-discord-encryptation
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, if you must continue using the package temporarily, consider isolating the environment where it is installed and limiting its access to sensitive data. However, this is not a recommended long-term solution, and removal of the package is the safest approach.
Conclusion
The token-discord-encryptation package has been compromised with malicious code, posing significant security risks to any system using it. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring for vulnerabilities, such as through Vulert, is recommended to maintain application security.
See every vulnerability recorded for token-discord-encryptation →
FAQ
Immediately remove the package and rotate any secrets or keys stored on the affected machine.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Currently, there is no patched version available. The best course of action is to remove the package entirely.
Failure to address this vulnerability can lead to unauthorized access to sensitive information and complete control of the affected system by malicious actors.
It is highly discouraged to continue using the package due to the severe security risks. Removal is the safest option.