MAL-2026-10440

    Dashboard / Malicious Package / MAL-2026-10440

    MAL-2026-10440

    Published: 13 Jul 2026Last Modified: 13 Jul 2026Aliases: 
    GHSA-rw86-h32r-9xf5

    Summary: Malicious code in type-context (npm)

    Details: Source: amazon-inspector (5c6706d0ad662da8d23eaf47c64780a777f3ec215d8864caf1e0962289463efb) The package presents itself as a logger (module.exports.pino, keywords fast/logger/stream/json, pino-like sibling files proto.js/multistream.js/transport.js/redaction.js) despite being named type-context. When a consumer imports the package and invokes its middleware factory, lib/caller.js is executed as a detached Node child process. That script fetches JSON from a hardcoded remote endpoint (https://jsonhosting.com/api/json/fb84ebf4/raw), extracts a 'cookie' field from the response, and passes the value to new Function.constructor('require', s)(require), executing attacker-controlled JavaScript with the real Node require injected — full module-loader privileges on the host. Fallback destinations are base64-encoded in a shadowed local process.env object labeled DEV_API_KEY, decoding to jsonkeeper.com paste URLs (https://jsonkeeper.com/b/XRGF3, https://jsonkeeper.com/b/4NAKK); this obfuscation of network destinations paired with the dynamic-code sink shows intent to evade casual review. The remote body is mutable and hosted on anonymous paste-style infrastructure, so any code the attacker chooses is executed on the installer/host. Source: ghsa-malware (e5a69151637bc251e0fa96b452db0d8e78c4e972dc232ad91fe7f94c7b655688) 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: type-context

    Purl: pkg:npm/type-context

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    3.2.7
    3.2.8
    3.2.9
    3.2.11
    MAL-2026-10440 | CVE-DB