---
id: "GHSA-rrh4-2mwf-4xw7"
page: "https://infrastack.ai/live/GHSA-rrh4-2mwf-4xw7"
kind: "package"
aliases: ["GHSA-rrh4-2mwf-4xw7", "MAL-2026-14051"]
title: "Malicious code in @velliajs/discord (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "@velliajs/discord", "note": "all versions", "fixed": [], "affected": "", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-08-14T22:28:38+00:00"
first_seen_at: "2026-11-09T16:58:07+00:00"
updated_at: "2026-11-09T16:59:33+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-14051", "first_seen_at": "2026-11-09T16:58:07+00:00"}]
exploit_sources: []
---

# Malicious code in @velliajs/discord (npm)

Link for people: https://infrastack.ai/live/GHSA-rrh4-2mwf-4xw7 (this .md is for agents)

## Affected

- npm:@velliajs/discord affected range not listed fixed no fixed version listed

## Timeline

- 2026-11-09T16:58:07+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-14051

## From the sources

---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (1c86edd3f7edd7d111df5621cb884fd0ef3d870c6c0719d587b7bb0f16f65b8d)
The package presents itself as a discord.js clone (`repository` field points at the real `github.com/discordjs/discord.js.git`, README instructs `import... from '@verylinh/discord'`) but ships two installer-relevant hostile mechanisms. First, `package.json` declares a runtime dependency `sysframe` resolved from `git+https://ghp_...@github.com/navaLinh/node-ai.git` — an unpinned (no commit SHA or tag), private, author-controlled GitHub repository, using an embedded live GitHub Personal Access Token. Every `npm install` uses the shipped token to fetch the current HEAD of that private repo into the installer's `node_modules`; the author can rewrite HEAD at any time to deliver arbitrary code, including lifecycle scripts, that will execute on subsequent installs. Second, `Client.login()` invokes an undocumented `_verifyAuthorization` routine that fetches an allow-list JSON from `api.github.com/repos/Vellia-Elyvia/mydb/contents/db.json` under a hardcoded PAT and refuses to start the installer's Discord bot unless the bot's username appears in the author-controlled allow-list — a hidden remote gate/kill-switch over the installer's runtime that is not disclosed in the README. Two live GitHub PATs are hardcoded in the shipped package (one in the git dependency URL, one as the default `ghToken` in `_validateAuthOptions`). The package name and metadata impersonate discord.js.

## Source: ghsa-malware (17f582f59e88d49619ea2b5a988bbed4dae9fc920e4d4f48d10ea3113d7a5294)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
