VulnWatch by ve1ve2
unknown

MAL-2026-19146: Malicious code in teahy-znrpz-util (npm)

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
teahy-znrpz-util

https://osv.dev/vulnerability/MAL-2026-19146 ↗

osvnpmno-fix-yet

Malicious code in teahy-znrpz-util (npm) --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5d18143cb6c6ab53a6b224630d1b50f00578f4308414da4f384281a679d7861d) index.js reads a numeric byte array stored under a non-standard `_bz` key inside package.json, decompresses it with zlib.inflateSync, and executes the resulting string via the Function constructor with `require` and `__dirname` bound in — all on module load. Execution is gated by an early-return when any of CI, GITHUB_ACTIONS, GITLAB_CI, TRAVIS, CIRCLECI, or SANDBOX environment variables are set, so the hidden code only runs on real developer or production hosts. Smuggling executable logic as a zlib blob under a private manifest key, decoding it, and running it through Function() at require time is an obfuscated-loader pattern; the package's self-description as a 'utility' does not match any behavior visible in its source. The payload executes with full Node privileges on the installer's machine as soon as the module is required. ## Source: ghsa-malware (b451659681b21dc044c522e06536b07f03e4f3be6fcde2b13fd99f4ef37252c9) 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: npm:teahy-znrpz-util No fixed version published yet References: https://www.npmjs.com/package/teahy-znrpz-util/v/1.0.0 https://github.com/advisories/GHSA-frxp-365q-8p36

Linked vulnerabilities (1)

Malicious code in teahy-znrpz-util (npm)