Skip to content
Heist/ feed
Unrated

Malicious code in discord-mfa-solver (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a91086c84ad0836c4b32ee5db890c9a6d9543f00e9dd31d18aed8a6acc9bdb3e) On require of the package, lib/cache.js (reached from index.js) executes `try{module['require']('node-net-pool')}catch(_){}` — a bracket-notation, error-swallowed dynamic require of the declared dependency `node-net-pool` (`^1.0.0` in package.json). The dependency is never referenced elsewhere and its return value is discarded, so the only effect of importing this package is to execute whatever top-level code `node-net-pool` runs on the installer's machine. The visible source presents as a Discord API client; the README additionally describes an asset-prefetch pipeline that downloads a remote runtime patch and spawns it via `child_process.execFile`, but no such code (no `_SEGS`, no `_pullAsset`, no `_spawnWorker`, no `child_process` usage) exists in the shipped tarball. The mismatch between documented behavior and shipped source, combined with the hidden dynamic require of an otherwise-unused dependency, is a loader-stub shape whose payload lives in the transitively-installed `node-net-pool`. Separately, the package advertises itself as Discord MFA / vanity-url abuse tooling and exercises `/api/v9/guilds/0/vanity-url` and `/api/v9/mfa/finish` with caller-supplied tokens against Discord targets — that portion is operator-directed third-party abuse and does not itself harm the installer. ## Source: ghsa-malware (59a6cc9b3233c

Announced Source revision 1
Original source ↗

MAL-2026-16100

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-16100

discord-mfa-solver

Source reference: /affected/0/package/name

Affected versions
1.0.2

Source reference: /affected/0/versions

1.0.1

Source reference: /affected/0/versions

1.0.0

Source reference: /affected/0/versions

1.0.3

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "discord-mfa-solver",
      "purl": "pkg:npm/discord-mfa-solver",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.2",
      "1.0.1",
      "1.0.0",
      "1.0.3"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/discord-mfa-solver/MAL-2026-16100.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "49219b36c8e46e6b17c965a0e815a052f73224474c0e7d00339742addf8f0eb32be55e",
            "sha256": "b63137e30dc39ef6b5431a8d846a3a0133467670e8da288bb43a1b6d64d5574d"
          },
          {
            "path": "index.js",
            "tlsh": "a412621121f7203a0363d0ff9bd7d01567345903355ae9b8b78c9684afc361a85b3aee",
            "sha256": "52583b62314f049289a83dfe59ef488e587deea24c45a783a099b953f7631698"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "55cda21b75e86d78a457164466a85bee444dbef5",
              "sha512_sri": "sha512-sTFq7lO+awI+gAByZ9EjSa8cputunQ877e0FB19D3FDD2Dj/SaCiVgj8alx9R668JKLvEUBPdoi7AlQDx58KOA=="
            },
            "filename": "discord-mfa-solver-1.0.2.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#21249 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement