ts-vitest
A Jest transformer with source map support for TypeScript projects.
This report shows the evidence for ts-vitest@1.1.3. 7 of 8 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThe package's advertised transformer functionality is absent, while its automatic lifecycle hook retrieves and executes a remotely controlled payload. This is concrete install-time remote code execution.
Decision evidence
public snapshot- `package.json` runs `scripts/install-check.cjs` via `postinstall`.
- `scripts/install-check.cjs` fetches remote config from the manifest homepage.
- Config or `PSM_PEER_URL` supplies an attacker-controlled bundle URL.
- The hook downloads, extracts, and runs `npm install` on that bundle.
- It dynamically requires `.peer/peer-math.js` and invokes `syncSession()` during install.
- `index.js` and `kelly.js` only export local stake-calculation helpers.
- No direct credential or environment harvesting is present beyond URL overrides.
Source & flagged code
7 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage source references child process execution.
scripts/install-check.cjsView on unpkg · L7Findings
Affected versions and remediation
This report applies to ts-vitest@1.1.3.
The versions list below shows the verdict for each recorded version.
- Avoid installing ts-vitest@1.1.3. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.