MAL-2026-17320

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cdn-img-fetch/MAL-2026-17320.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17320
Aliases
  • GHSA-v3rj-w7v4-jcfx
Published
2026-09-30T04:38:16Z
Modified
2026-10-08T13:45:05Z
Summary
Malicious code in cdn-img-fetch (npm)
Details

-= 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 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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020806",
            "import_time":  "2026-09-30T04:46:52.475923183Z",
            "modified_time":  "2026-09-30T04:38:16Z",
            "sha256":  "1ba73af34d8c606e15a9ea353fd9e0724f3906a294e01c00f8b566a9501fc939",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-020807",
            "import_time":  "2026-09-30T04:46:52.523472638Z",
            "modified_time":  "2026-09-30T04:38:24Z",
            "sha256":  "d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.1"
            ]
        },
        {
            "id":  "GHSA-v3rj-w7v4-jcfx",
            "import_time":  "2026-10-07T21:26:00.327477946Z",
            "modified_time":  "2026-10-07T20:52:33Z",
            "sha256":  "68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7",
            "source":  "ghsa-malware",
            "versions":  [
                "1.0.0",
                "1.0.3"
            ]
        },
        {
            "id":  "IN-MAL-2026-021100",
            "import_time":  "2026-10-08T00:52:22.521349519Z",
            "modified_time":  "2026-10-07T23:47:12Z",
            "sha256":  "cc4b99f186837aa0779c50ada7191a08d0252c1999a25e3f0c1ae864b028d088",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.3"
            ]
        },
        {
            "id":  "GHSA-v3rj-w7v4-jcfx",
            "import_time":  "2026-10-08T13:33:19.408449969Z",
            "modified_time":  "2026-10-08T13:04:05Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "2777780984a8eb3b2e445e8b7220fd232f61ebec552be5550c908b46ec6cafa7",
            "source":  "ghsa-malware",
            "versions":  [
                "1.0.0",
                "1.0.3"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / cdn-img-fetch

Package

Name
cdn-img-fetch
View open source insights on deps.dev
Purl
pkg:npm/cdn-img-fetch

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
1.0.3

Database specific

cwes
[
    {
        "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.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "index.js",
            "sha256":  "430300450f5acbd69c29f02d8c2e243f7d1d6202d1826f6e4d7715f95c47299b",
            "tlsh":  "5311ddfb2af22024407371d8a347a82eb243e0037284ca80b99ce2d45fc20344dd2b9c"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "cdn-img-fetch-1.0.0.tgz",
            "hashes":  {
                "sha1":  "bbe47b192f36c7cbf47d02f35fd1a3448aab7aa2",
                "sha512_sri":  "sha512-lQ0CYe38ls2tLv7IhICUTIfG7CXYrERd3zi1OqjbUJOPt+SM/lbpnvit9KB70uG04pWXMyJPMc8Hczun0Ig1nw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cdn-img-fetch/MAL-2026-17320.json"