ID :ISA-2026-033
High alertActiveIservicesCSIRT

Supply chain compromise affecting npm and PyPi ecosystems

Executive Summary

A supply chain compromise campaign targeting npm and PyPI registries would allow a malicious actor to execute arbitrary code when installing dependencies, steal infrastructure secrets, and automatically spread a worm (malware) to other software packages.

Published on May 12, 2026 at 01:00 AM by Iservices Csirt13 views

Description

Technical context and vulnerability details

Npm is the default package manager for Node.js, allowing you to install and manage essential libraries like TanStack, a suite dedicated to managing state and data manipulation in the React and JavaScript ecosystems. PyPi is the official repository of third-party software and libraries for the Python programming language and represents the source where Python developers publish and find modules intended for various uses such as data analysis, artificial intelligence, automation. On May 11, 2026, a malicious actor identified under the pseudonym TeamPCP published 42 malicious npm packages spread across 84 versions of the @tanstack/ space. This publication was made possible by the combination of three techniques: the exploitation of “Pwn Request” vulnerabilities via pull_request_target, the poisoning of the GitHub Actions cache and the extraction of an OIDC token in memory. The compromised versions incorporate two distinct infection vectors. An optionalDependencies field added in the package.json of affected packages automatically triggering the execution of a payload via the Bun executor upon installation. The packages also contain a heavily obfuscated file named router_init.js, which acts as a data collection agent and self-propagating worm. The spread of the worm led to the impact of other npm packages such as opensearch-project/opensearch, uipath as well as the PyPi packages mistralai and guardrails-ai. This compromise would allow a malicious actor to execute arbitrary code remotely, steal cloud service credentials and permanently compromise the integrity of affected environments.

Potential Risks & Impact

Potential consequences upon exploitation

  • Remote Code Execution;
  • Breach of data confidentiality (API keys, secrets, environment variables);
  • Compromise of system integrity and deployment chain;

Affected systems

Products, components and targeted versions

  • The compromised PyPi packages guardrails-ai@0.10.1 and mistralai@2.4.6;
  • @transtack/* npm packages and other compromises (exhaustive list at the last two references);
  • Any system (developer workstation, CI/CD server, production environment) having executed npm install, pnpm install, yarn install or pip install on one of the versions listed on May 11, 2026 is considered potentially compromised;

Recommended Remediations & Actions

Immediate actions and recommended mitigations

  • Check and purge lock files (package-lock.json, yarn.lock, or pnpm-lock.yaml) to identify compromised versions;
  • Find and kill the gh-token-monitor process before revoking GitHub tokens;
  • Force update or downgrade to clean, verified versions of affected package libraries;
  • Immediately reset all API keys, secrets and identifiers present in the environment variables of the systems that installed the malicious packages;
  • Inspect the .claude/ and .vscode/ folders for suspicious files like router_runtime.js that provide persistence;
  • Block network compromise indicators presented in the corresponding section;

INDICATORS OF COMPROMISE:

  • hxxp://filev2[.]getsession[.]org/file/
  • git-tanstack[.]com
  • Seed1[.]getsession[.]org, seed2[.]getsession[.]org, seed3[.]getsession[.]org
  • 83[.]142.209[.]194
  • git-tanstack[.]com/tmp/transformers.pyz
  • Processus malveillant
  • gh-token-monitor (~/Library/LaunchAgents/com.user.gh-token-monitor.plist sur macOS ou ~/.config/systemd/user/gh-token-monitor.service sur Linux)
  • Paquets npm et PyPi identifiés comme altérés
  • Voir la liste actualisée au niveau des deux dernières références
  • Autre indicateur
  • champ optionalDependencies ajouté dans le fichier package.json comme suit : « optionalDependencies »: { « @tanstack/setup »: »github:tanstack/router#79ac49eedf774dd4b0cfa308722bc463cfe5885c » }

Advisory Specifications

ISA-2026-033
PriorityHigh
StatusActive
Typesecurite
Published onMay 12, 2026 at 01:00 AM
OrigineIservicesCSIRT
Audience13 views

CSIRT Emergency Response

Is your organization affected or do you suspect an incident? Our security experts are available to assist.

Report an incident

Get our alerts by email

Subscribe to receive our security alert bulletins and Iservices news straight to your inbox.

Ready to Work With Us?

Join hundreds of satisfied clients who trust Iservices with their technology needs. Let's discuss how we can help transform your business.

Get our alerts by email

Subscribe to receive our security alert bulletins and Iservices news straight to your inbox.