🛡️ MAL-2026-10990 — ts-vitest

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Malicious code in ts-vitest (npm)

ts-vitest is a typosquat of vitest/ts-eslint (hollow "kelly-calc"/"clob-math" content, no legitimate functionality) that ships a postinstall two-stage fetch-exec dropper. The package.json declares postinstall: node scripts/install-check.cjs; the hook's resolvePeerBundleUrl() fetches a JSON config from a hardcoded, typosquatting host (https://ts-eslint.vercel.app/config/clob-math.json, also the package.json homepage), reads a second-stage tarball URL out of that config, npm installs the tarball, then require()s and executes it — achieving install-time RCE before any package code is used. The config JSON resolves to a second-stage tarball at https://ts-eslint.vercel.app/releases/psm-peer.tgz, whose main entry point is peer-math.js. The config indirection (an ephemeral *.vercel.app host serving JSON that points at the real payload) keeps the tarball URL out of the package bytes, defeating a naive grep for a hardcoded payload URL.

The lineage alternates malicious and clean releases: 1.1.1 shipped the dropper (previously convicted), 1.1.2 removed the postinstall hook as a clean decoy, and 1.1.3 restores a byte-identical copy of the 1.1.1 dropper. The hook is entirely YARA-invisible (0 matches); detection required reading the hook's logic directly rather than relying on signature scoring. Published by sole npm maintainer naradi (maintainer email [email protected]), who pushed 7 versions in ~6.5 hours.

Source: amazon-inspector

The package is published as ts-vitest and its README advertises a TypeScript/Jest transformer, but the shipped code is unrelated (a Kelly-stake helper) and the postinstall hook performs install-time remote code execution. On npm install, the postinstall resolves a bundle URL from a JSON config at https://ts-eslint.vercel.app/config/clob-math.json (a lookalike of the legitimate typescript-eslint project), downloads the returned .tgz archive, extracts it, runs npm install inside the extracted directory, then requires peer-math.js and invokes syncSession() in the installer's Node process. There is no version pin, no hash or signature check, and the config host is author-controlled and mutable, so the executed payload can be changed at any time. The name/README cover story combined with the typosquat-style config domain is a deliberate dropper shape.

Affected software

MAL-2026-10990 is recorded against 1 package.

  • ts-vitest

Timeline and source

Published on 21 July 2026 and last revised on 5 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

Indicators of compromise

Domains: ts-eslint.vercel.app
URLs: https://ts-eslint.vercel.app/config/clob-math.json https://ts-eslint.vercel.app/releases/psm-peer.tgz

References

www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)
www.npmjs.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-07-21
Updated 2026-08-12
Modified 2026-08-05
Fix URL N/A

Affected Packages

Software From version Fixed in
ts-vitest

Free Vulnerability Check

Is your site affected by MAL-2026-10990?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-10990 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.