MAL-2026-5791

    Dashboard / Malicious Package / MAL-2026-5791

    MAL-2026-5791

    Published: 15 Jun 2026Last Modified: 8 Jul 2026Aliases: 
    GHSA-75f4-4w6r-vvch

    Summary: Malicious code in mddriver (npm)

    Details: Source: amazon-inspector (5a5b264d05ffaf76e8be2d7a46cb2277211a045fa15e8c510ab60cdd5c5bae56) On require('mddriver'), an IIFE in index.js invokes loadTokenData(), which fetches https://www.jsonkeeper.com/b/C4H0M (stored base64-encoded as "aHR0cHM6Ly93d3cuanNvbmtlZXBlci5jb20vYi9DNEgwTQ==" and decoded with atob), parses the JSON response, and passes the.content field to a Function-constructor evaluator (`new (Function.contructor)(...)`) for execution. The paste-style host is anonymous and the fetched content is fully mutable — any consumer that imports this package executes whatever JavaScript the operator of that paste serves at that moment, with no signature, hash, or pinning. The package metadata advertises 'MongoDB connection driver' but the shipped index.js is a verbatim copy of Node's built-in `path` module with the dropper appended; the name 'mddriver' and the misleading description are consistent with a typosquat targeting developers searching for mongodb / mongoose drivers. Source: ghsa-malware (45fd76a2765e02f6a60cec830796a1e08003fabc1704c1a645369ebd86c0244d) 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.

    Affected packages

    Package

    Name: mddriver

    Purl: pkg:npm/mddriver

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    1.8.5
    1.8.4
    1.8.2
    1.8.6
    1.8.3
    1.8.1
    MAL-2026-5791 | CVE-DB