MAL-2026-16309
Dashboard / Malicious Package / MAL-2026-16309
MAL-2026-16309
Summary: Malicious code in npmscript_tesstalert_unpkg (npm)
Details: Source: amazon-inspector (8c84336bfcd8d43d3f97942ded74e5a049c05e024f5a4b79dbee66acff1e1627) The package ships a single script exposed via the `unpkg` field for CDN loading into web pages. When executed in a browser, the script reads `document.cookie` and assigns `window.location.href` to `https://webhook.site/4c14c8e4-721e-471d-807c-1a2aa216512a/` concatenated with the cookie value, causing the browser to navigate to that attacker-controlled endpoint carrying the victim's cookies. The identifiers `location`, `href`, and `cookie` are assembled from split fragments (`"loca"+"tion"`, `"hr"+"ef"`, `"coo"+"kie"`) to hide the sensitive property accesses from string-based scanners. Any page that loads this file via unpkg or bundles it exfiltrates its cookies to the hardcoded webhook.site collector. Source: ghsa-malware (efdb5fd9b7105d7d7bad5ef86b67ee09c7b8d936866298e6dab1da36329d1641) 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.
References: https://www.npmjs.com/package/npmscript_tesstalert_unpkg/v/1.0.2, https://www.npmjs.com/package/npmscript_tesstalert_unpkg/v/1.0.1, https://www.npmjs.com/package/npmscript_tesstalert_unpkg/v/1.1.8, https://www.npmjs.com/package/npmscript_tesstalert_unpkg/v/1.1.7, https://github.com/advisories/GHSA-xvj9-j5xj-9f5p
Affected packages
Package
Name: npmscript_tesstalert_unpkg
Purl: pkg:npm/npmscript_tesstalert_unpkg
Affected ranges
Type: SEMVER
Events:
