Malicious code in cdn-img-fetch (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7) On require() of cdn-img-fetch, index.js unconditionally invokes https.get against https://raw.githubusercontent.com/cavecrew/proj/main/banner.png and pipes the response into a hidden dot-file at os.tmpdir()/._cif_data (written via a.part file and renamed into place). The source is a mutable main-branch URL in a personal GitHub account unrelated to the npm publisher, with no version pin, hash, or signature check, so whoever controls that repo controls the bytes dropped onto the installer's disk on every import. The fetch fires automatically as an IIFE at module load, not from any user-invoked API, and the destination filename is deliberately hidden. The package advertises itself as a CDN image cache helper, which does not explain an import-time download of an opaque file from a third-party personal repo to a hidden tmp location. This is the first-stage dropper / staging shape: the current fetched bytes are written but not executed in this version, but the mechanism gives an off-registry actor a persistent import-time write primitive into every installer's tmp directory. ## Source: ghsa-malware (68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7) 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 immediate
- Products
- cdn-img-fetch
- Affected versions
- 1.0.0, 1.0.1, 1.0.3
- Fixed versions
- Not specified
- CVEs
- Not specified
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 09:09 UTC · Revision 1
Source evidence
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7) On require() of cdn-img-fetch, index.js unconditionally invokes https.get against https://raw.githubusercontent.com/cavecrew/proj/main/banner.png and pipes the response into a hidden dot-file at os.tmpdir()/._cif_data (written via a.part file and renamed into place). The source is a mutable main-branch URL in a personal GitHub account unrelated to the npm publisher, with no version pin, hash, or signature check, so whoever controls that repo controls the bytes dropped onto the installer's disk on every import. The fetch fires automatically as an IIFE at module load, not from any user-invoked API, and the destination filename is deliberately hidden. The package advertises itself as a CDN image cache helper, which does not explain an import-time download of an opaque file from a third-party personal repo to a hidden tmp location. This is the first-stage dropper / staging shape: the current fetched bytes are written but not executed in this version, but the mechanism gives an off-registry actor a persistent import-time write primitive into every installer's tmp directory. ## Source: ghsa-malware (68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7) 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 immediate
osv:MAL-2026-17320
cdn-img-fetch
Fixed versions: Not specified
Complete source record
{
"id": "0c4c23443683518a0bbb83865ff8c96db65cd1a5d99c4f47eb64d4f340b6b6dc",
"url": "https://osv.dev/vulnerability/MAL-2026-17320",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Malicious code in cdn-img-fetch (npm)",
"summary": "--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7) On require() of cdn-img-fetch, index.js unconditionally invokes https.get against https://raw.githubusercontent.com/cavecrew/proj/main/banner.png and pipes the response into a hidden dot-file at os.tmpdir()/._cif_data (written via a.part file and renamed into place). The source is a mutable main-branch URL in a personal GitHub account unrelated to the npm publisher, with no version pin, hash, or signature check, so whoever controls that repo controls the bytes dropped onto the installer's disk on every import. The fetch fires automatically as an IIFE at module load, not from any user-invoked API, and the destination filename is deliberately hidden. The package advertises itself as a CDN image cache helper, which does not explain an import-time download of an opaque file from a third-party personal repo to a hidden tmp location. This is the first-stage dropper / staging shape: the current fetched bytes are written but not executed in this version, but the mechanism gives an off-registry actor a persistent import-time write primitive into every installer's tmp directory. ## Source: ghsa-malware (68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7) 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 immediate",
"evidence": "osv:MAL-2026-17320",
"products": [
{
"name": {
"value": "cdn-img-fetch",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.0.0",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.3",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "unknown",
"structured": {
"id": "MAL-2026-17320",
"aliases": [
"GHSA-v3rj-w7v4-jcfx",
"MAL-2026-17320"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "cdn-img-fetch",
"purl": "pkg:npm/cdn-img-fetch",
"ecosystem": "npm"
},
"versions": [
"1.0.0",
"1.0.1",
"1.0.3"
],
"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/cdn-img-fetch/MAL-2026-17320.json",
"indicators": {
"evidence_files": [
{
"path": "index.js",
"tlsh": "5311ddfb2af22024407371d8a347a82eb243e0037284ca80b99ce2d45fc20344dd2b9c",
"sha256": "430300450f5acbd69c29f02d8c2e243f7d1d6202d1826f6e4d7715f95c47299b"
}
],
"package_integrity": [
{
"hashes": {
"sha1": "bbe47b192f36c7cbf47d02f35fd1a3448aab7aa2",
"sha512_sri": "sha512-lQ0CYe38ls2tLv7IhICUTIfG7CXYrERd3zi1OqjbUJOPt+SM/lbpnvit9KB70uG04pWXMyJPMc8Hczun0Ig1nw=="
},
"filename": "cdn-img-fetch-1.0.0.tgz"
}
]
}
}
}
],
"modified": "2026-10-08T13:45:05.312970850Z",
"provider": "osv",
"references": [
"https://www.npmjs.com/package/cdn-img-fetch/v/1.0.0",
"https://www.npmjs.com/package/cdn-img-fetch/v/1.0.1",
"https://github.com/advisories/GHSA-v3rj-w7v4-jcfx",
"https://www.npmjs.com/package/cdn-img-fetch/v/1.0.3"
],
"provider_metadata": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-020806",
"sha256": "1ba73af34d8c606e15a9ea353fd9e0724f3906a294e01c00f8b566a9501fc939",
"source": "amazon-inspector",
"versions": [
"1.0.0"
],
"import_time": "2026-09-30T04:46:52.475923183Z",
"modified_time": "2026-09-30T04:38:16Z"
},
{
"id": "IN-MAL-2026-020807",
"sha256": "d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7",
"source": "amazon-inspector",
"versions": [
"1.0.1"
],
"import_time": "2026-09-30T04:46:52.523472638Z",
"modified_time": "2026-09-30T04:38:24Z"
},
{
"id": "GHSA-v3rj-w7v4-jcfx",
"sha256": "68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7",
"source": "ghsa-malware",
"versions": [
"1.0.0",
"1.0.3"
],
"import_time": "2026-10-07T21:26:00.327477946Z",
"modified_time": "2026-10-07T20:52:33Z"
},
{
"id": "IN-MAL-2026-021100",
"sha256": "cc4b99f186837aa0779c50ada7191a08d0252c1999a25e3f0c1ae864b028d088",
"source": "amazon-inspector",
"versions": [
"1.0.3"
],
"import_time": "2026-10-08T00:52:22.521349519Z",
"modified_time": "2026-10-07T23:47:12Z"
},
{
"id": "GHSA-v3rj-w7v4-jcfx",
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
}
]
}
],
"sha256": "2777780984a8eb3b2e445e8b7220fd232f61ebec552be5550c908b46ec6cafa7",
"source": "ghsa-malware",
"versions": [
"1.0.0",
"1.0.3"
],
"import_time": "2026-10-08T13:33:19.408449969Z",
"modified_time": "2026-10-08T13:04:05Z"
}
]
}
},
"related_cves": [],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 99679,
"published_at": "2026-09-30T04:38:16+00:00"
}