Malicious code in xerohub-discord-voice-v2 (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (86630f2d32ad3a1a8ae419e538be3c6b46ce5f64ea5e871e1ccdf34c402d0032) Xerohub_Voice.js exports startVoiceJoiner(), advertised as a Discord voice-channel joiner, which POSTs the caller-supplied Discord USER_TOKEN together with the account username, guild ID, and channel ID to a hardcoded Discord webhook (https://discord.com/api/webhooks/1528726419046404196/...). The webhook URL is read from DISCORD_WEBHOOK_URL with the attacker-controlled webhook as a hardcoded fallback, so ordinary use of the documented API silently forwards the raw Discord user token to a destination the caller did not configure. A Discord user token grants full account takeover (message read/write, server membership, DMs, billing). The bundled index.js example additionally contains a literal USER_TOKEN string that would be relayed to the same webhook on execution. Relay of the caller's authentication token is not part of the advertised voice-joining functionality.
AI Analysis
Technical Summary
The xerohub-discord-voice-v2 npm package exports a function startVoiceJoiner() which, beyond its advertised purpose of joining Discord voice channels, silently sends the caller-supplied Discord USER_TOKEN along with account details to a hardcoded Discord webhook URL. The webhook URL is read from an environment variable but falls back to an attacker-controlled hardcoded URL if not set. The included example code contains a literal USER_TOKEN string that is also sent to the webhook on execution. This exfiltration of authentication tokens enables full Discord account compromise. This behavior is malicious and not disclosed as part of the package's intended functionality.
Potential Impact
Exfiltration of Discord user tokens to an attacker-controlled webhook allows full account takeover, including reading and sending messages, accessing server memberships, direct messages, and billing information. This compromises user privacy and security, potentially leading to account abuse or fraud. The malicious behavior occurs silently during normal use of the package's API.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid using xerohub-discord-voice-v2 versions listed as affected. Since the package exfiltrates sensitive tokens silently, immediate removal and replacement with a trusted alternative is recommended. Monitor for any unauthorized Discord account activity if this package was used. Patch status is not yet confirmed — check the vendor advisory or npm repository for updates.
Malicious code in xerohub-discord-voice-v2 (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (86630f2d32ad3a1a8ae419e538be3c6b46ce5f64ea5e871e1ccdf34c402d0032) Xerohub_Voice.js exports startVoiceJoiner(), advertised as a Discord voice-channel joiner, which POSTs the caller-supplied Discord USER_TOKEN together with the account username, guild ID, and channel ID to a hardcoded Discord webhook (https://discord.com/api/webhooks/1528726419046404196/...). The webhook URL is read from DISCORD_WEBHOOK_URL with the attacker-controlled webhook as a hardcoded fallback, so ordinary use of the documented API silently forwards the raw Discord user token to a destination the caller did not configure. A Discord user token grants full account takeover (message read/write, server membership, DMs, billing). The bundled index.js example additionally contains a literal USER_TOKEN string that would be relayed to the same webhook on execution. Relay of the caller's authentication token is not part of the advertised voice-joining functionality.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The xerohub-discord-voice-v2 npm package exports a function startVoiceJoiner() which, beyond its advertised purpose of joining Discord voice channels, silently sends the caller-supplied Discord USER_TOKEN along with account details to a hardcoded Discord webhook URL. The webhook URL is read from an environment variable but falls back to an attacker-controlled hardcoded URL if not set. The included example code contains a literal USER_TOKEN string that is also sent to the webhook on execution. This exfiltration of authentication tokens enables full Discord account compromise. This behavior is malicious and not disclosed as part of the package's intended functionality.
Potential Impact
Exfiltration of Discord user tokens to an attacker-controlled webhook allows full account takeover, including reading and sending messages, accessing server memberships, direct messages, and billing information. This compromises user privacy and security, potentially leading to account abuse or fraud. The malicious behavior occurs silently during normal use of the package's API.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should avoid using xerohub-discord-voice-v2 versions listed as affected. Since the package exfiltrates sensitive tokens silently, immediate removal and replacement with a trusted alternative is recommended. Monitor for any unauthorized Discord account activity if this package was used. Patch status is not yet confirmed — check the vendor advisory or npm repository for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-11154
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a73572fbf8831d53913ccff
Added to database: 08/05/2026, 15:30:55 UTC
Last enriched: 08/05/2026, 15:36:16 UTC
Last updated: 08/05/2026, 15:39:22 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.