MAL-2026-16053

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/file-type-detector/MAL-2026-16053.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16053
Aliases
  • GHSA-fw6v-88vw-pqr3
Published
2026-09-09T00:27:12Z
Modified
2026-11-11T16:31:43Z
Summary
Malicious code in file-type-detector (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (04917bd7fc156dcb9793cb1f1d06ed0f2d0cb1b3aa4b04431dea54ed71f6be72)

A clone of file-type-checker with one function added: isSign(name, moduleName, offset) in dist/validation/image.js reads public/${name}.png from the working directory, splits the buffer at -offset, and writes the trailing payload to../../../{moduleName}/log - a sibling package under node_modules - then returns isPNG() so the caller sees a plausible boolean. It is undocumented, reachable only via an __exportStar wildcard so it is never named in dist/index.js, and fails silently on try/catch.

Drop stage of a three-package chain: file-type-detector writes the payload, gloggo (1.1.2-1.1.4) executes it via require('./log'), and sonmors (typosquat of sonner) triggers the chain by requiring gloggo. gloggo shares the npm publisher log-developer and was published five minutes apart on 2026-08-27. No install hooks; execution occurs on require().

Source: ghsa-malware (cf4b330143b17fd8c5b2c9b3ea655e4d8ab79266aa54faefc66369c49343d020)

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-019729",
            "import_time": "2026-09-09T00:47:58.112210798Z",
            "modified_time": "2026-09-09T00:27:12Z",
            "sha256": "04917bd7fc156dcb9793cb1f1d06ed0f2d0cb1b3aa4b04431dea54ed71f6be72",
            "source": "amazon-inspector",
            "versions": [
                "1.1.0"
            ]
        },
        {
            "id": "IN-MAL-2026-019730",
            "import_time": "2026-09-09T00:47:58.190429304Z",
            "modified_time": "2026-09-09T00:27:22Z",
            "sha256": "71bc73a30f67553cd6a23058191a0e93333a056cbcb85896fbfc87b2e3a4e477",
            "source": "amazon-inspector",
            "versions": [
                "1.1.1"
            ]
        },
        {
            "id": "GHSA-fw6v-88vw-pqr3",
            "import_time": "2026-11-11T16:18:54.765865808Z",
            "modified_time": "2026-11-11T16:07:40Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "cf4b330143b17fd8c5b2c9b3ea655e4d8ab79266aa54faefc66369c49343d020",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / file-type-detector

Package

Name
file-type-detector
View open source insights on deps.dev
Purl
pkg:npm/file-type-detector

Affected ranges

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

Affected versions

1.*
1.1.0
1.1.1

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"
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "file-type-detector-1.1.0.tgz",
            "hashes": {
                "sha1": "c3452c877f280788620ba728592d5dac71c2958d",
                "sha512_sri": "sha512-xrefg9CLEpfg+lb5YVdyFHlsV/ZF8Xrt+MsYSAkj38bJmbZ28a3ZgBP0ETKAIs6AQOMgqGp2WHIPpwhLGjapAw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/file-type-detector/MAL-2026-16053.json"