Malicious code in npmscript_tesstalert_unpkg (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## 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.
- Products
- npmscript_tesstalert_unpkg
- Affected versions
- 1.0.1, 1.0.2, 1.1.7, 1.1.8
- Fixed versions
- Not specified
- CVEs
- Not specified
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 06:36 UTC · Revision 1
Source evidence
Malicious code in npmscript_tesstalert_unpkg (npm)
core-osv · Original sourcePublished 21 Sept 2026, 03:06 UTC
--- _-= Per source details. Do not edit below this line.=-_ ## 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.
osv:MAL-2026-16309
npmscript_tesstalert_unpkg
Fixed versions: Not specified
Complete source record
{
"id": "3c81f44678b69afad513d7916317ca149b5ee6005c7e4bef7b6e7008bd22beab",
"url": "https://osv.dev/vulnerability/MAL-2026-16309",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Malicious code in npmscript_tesstalert_unpkg (npm)",
"summary": "--- _-= Per source details. Do not edit below this line.=-_ ## 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.",
"evidence": "osv:MAL-2026-16309",
"products": [
{
"name": {
"value": "npmscript_tesstalert_unpkg",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.2",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.1",
"evidence": "/affected/0/versions"
},
{
"value": "1.1.8",
"evidence": "/affected/0/versions"
},
{
"value": "1.1.7",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "unknown",
"structured": {
"id": "MAL-2026-16309",
"aliases": [
"GHSA-xvj9-j5xj-9f5p",
"MAL-2026-16309"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "npmscript_tesstalert_unpkg",
"purl": "pkg:npm/npmscript_tesstalert_unpkg",
"ecosystem": "npm"
},
"versions": [
"1.0.2",
"1.0.1",
"1.1.8",
"1.1.7"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/npmscript_tesstalert_unpkg/MAL-2026-16309.json",
"indicators": {
"evidence_files": [
{
"path": "script.js",
"tlsh": "ecc08cbf30258daa4a50c04922e8b60aa224420dd853d50b9a881b211f0c91818642e7",
"sha256": "d07a8bca18ee7732f852fc4ec9ecd86150bc178a14f464afe844c11e792a196c"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "eb109a686b36c9f5688eca0903ec119802fcebdc",
"sha512_sri": "sha512-7l3ngY3IlZ0v+cJoOGnHb+IQaD1zqUJWp/8TEWCYTBf8UfthO+iA36RGfpKgcfgF9B5bFAh4rbXtAf4P0MdYDQ=="
},
"filename": "npmscript_tesstalert_unpkg-1.0.2.tgz"
}
]
}
}
}
],
"modified": "2026-10-12T13:45:04.789878704Z",
"provider": "osv",
"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"
],
"provider_metadata": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-020199",
"sha256": "5fa1adfe349e0a6092589e90bf38184b5769148bf42b4216fc714ad446ea747b",
"source": "amazon-inspector",
"versions": [
"1.0.2"
],
"import_time": "2026-09-21T03:24:20.718482369Z",
"modified_time": "2026-09-21T03:06:40Z"
},
{
"id": "IN-MAL-2026-020203",
"sha256": "c777bbe58b3d69665fe68a18fced15bddf5b2af8c9fc19daac7fc5b886188330",
"source": "amazon-inspector",
"versions": [
"1.0.1"
],
"import_time": "2026-09-21T03:24:21.037355069Z",
"modified_time": "2026-09-21T03:07:34Z"
},
{
"id": "IN-MAL-2026-020278",
"sha256": "3768ce94b4529af0a60d4781cbb2dd69230e7781efb440e0a9c4fc5dcc7121da",
"source": "amazon-inspector",
"versions": [
"1.1.8"
],
"import_time": "2026-09-21T21:37:44.996447323Z",
"modified_time": "2026-09-21T21:29:07Z"
},
{
"id": "IN-MAL-2026-020279",
"sha256": "8c84336bfcd8d43d3f97942ded74e5a049c05e024f5a4b79dbee66acff1e1627",
"source": "amazon-inspector",
"versions": [
"1.1.7"
],
"import_time": "2026-09-21T21:37:45.051365256Z",
"modified_time": "2026-09-21T21:31:19Z"
},
{
"id": "GHSA-xvj9-j5xj-9f5p",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"sha256": "efdb5fd9b7105d7d7bad5ef86b67ee09c7b8d936866298e6dab1da36329d1641",
"source": "ghsa-malware",
"import_time": "2026-10-12T12:55:43.317434986Z",
"modified_time": "2026-10-12T12:22:43Z"
}
]
}
},
"related_cves": [],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 299929,
"published_at": "2026-09-21T03:06:40+00:00"
}