---
id: "GHSA-phw8-h49c-9v2q"
kind: "package"
aliases: ["GHSA-phw8-h49c-9v2q", "MAL-2026-12076"]
title: "Malicious code in tinkoff-cache-path (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "tinkoff-cache-path", "fixed": [], "affected": "all versions", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-08-05T01:40:03+00:00"
first_seen_at: "2026-10-26T20:51:48+00:00"
updated_at: "2026-10-26T21:12:36+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-12076", "first_seen_at": "2026-10-26T20:51:48+00:00"}]
---

# Malicious code in tinkoff-cache-path (npm)

## Affected

- npm:tinkoff-cache-path affected all versions fixed ?

## Timeline

- 2026-10-26T20:51:48+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-12076

## From the sources

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

## Source: amazon-inspector (9db3a162bd8fe3b6112b6d058e42245617122a41941d0b3a818254aba25ce59b)
The package advertises itself as an in-memory cache utility, but index.js unconditionally requires _compat.js on load, which acts as a dropper. _compat.js selects a platform-specific endpoint from an obfuscated list of hosts assembled at runtime via Array.join (oob-worker.cf*.workers.dev and *.dl.well1.site), downloads an opaque native binary over HTTPS, and falls back to a DNS-TXT covert channel that queries a count record at c.<domain> and reassembles numbered base64 TXT chunks into an executable buffer. The payload is written under /var/tmp or %TEMP% with a disguised name (.cache_<rand> on Unix, dotnet_diag_<rand>.exe on Windows), chmod +x, and spawned detached via cp.spawn("/bin/sh", ["-c", fp + " &"], {detached:true}).unref() or spawn("cmd",...). A.analytics_state marker file and DO_NOT_TRACK-shaped environment opt-outs are used as cover. The declared purpose (caching) has no relationship to fetching and executing a native binary from attacker-controlled infrastructure.

## Source: ghsa-malware (552aaa735c9fe984505fd2126c110c3219350dc76a922e50ffb6eef32c475337)
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 at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
