Versions 1.161.12 and 1.161.9 of @tanstack/history were compromised (credential stealer); other versions are not flagged as malicious. CyberXYZ Proxy blocks the affected versions. It also has 1 known vulnerability, the worst rated CRITICAL.
Do not install @tanstack/history 1.161.12 or 1.161.9
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.
This package was compromised as part of the "Mini Shai-Hulud is back" worm by the TeamPCP threat actor.
The package will steal credentials and then propogate it to every package it has access to. The package also attempts to remain persistent.
Reported by GitHub Advisory Database and Google Open Source Security via OSV.
mitre ttp
T1056
// versions and what to do
Malicious
1.161.12, 1.161.9
Move to
1.162.5 newest 1.x release, no known advisory
If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.
Versions 1.161.12 and 1.161.9 of @tanstack/history were compromised (credential stealer). Other versions are not flagged as malicious.
Does @tanstack/history have known vulnerabilities?
Yes. CyberXYZ records 1 known vulnerability for @tanstack/history (npm), the worst rated CRITICAL. They are GHSA-g7cv-rxg3-hmpx.
Which version of @tanstack/history should I use?
Use 1.162.5 or a later release that is not named as malicious. Versions named on this report as malicious must not be installed.
How do I check @tanstack/history before installing?
Search @tanstack/history in CyberXYZ Check at https://cyberxyz.io/check?q=%40tanstack%2Fhistory. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.
Checked 2026-11-14 at 15:27 UTC. The most recent advisory here was published 2026-05-12. Updated continuously from NVD, GHSA, OSV and CNA feeds.