MAL-2026-20625

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/global-error-handling/MAL-2026-20625.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20625
Published
2026-11-25T23:15:16Z
Modified
2026-11-25T23:45:04Z
Summary
Malicious code in global-error-handling (npm)
Details

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

Source: amazon-inspector (d849db4ee159bcf193d6c33967a3ad197579ed55cdceb7efb78cc676fb68ae35)

package.json declares a postinstall script that executes index.js on npm install. index.js reads os.hostname() and process.cwd() and POSTs them, along with a generated test identifier, to a hardcoded https://webhook.site/0a4d6535-e2dd-46b7-aff7-8af65c145c50 collector. webhook.site is a public third-party request-capture service that is commonly used as an install-time beacon sink. The behavior fires automatically on default install, is directed at a third-party endpoint unrelated to any declared publisher infrastructure, and discloses the installer's machine hostname and current working directory to whoever controls the webhook.site token. Self-descriptive strings in the payload (event: "authorized-poc-test") are author-controlled and do not change the behavior: the shipped code performs unsolicited outbound exfiltration of host identifiers on every install.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-023127",
            "import_time":  "2026-11-25T23:36:07.057694999Z",
            "modified_time":  "2026-11-25T23:15:16Z",
            "sha256":  "405257f11a91ae463bc310fe6faa11e725afe8be91a3cc2c8a24c0cb16db9119",
            "source":  "amazon-inspector",
            "versions":  [
                "1.1.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-023128",
            "import_time":  "2026-11-25T23:36:07.112029600Z",
            "modified_time":  "2026-11-25T23:15:27Z",
            "sha256":  "d849db4ee159bcf193d6c33967a3ad197579ed55cdceb7efb78cc676fb68ae35",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / global-error-handling

Package

Name
global-error-handling
View open source insights on deps.dev
Purl
pkg:npm/global-error-handling

Affected ranges

Affected versions

1.*
1.0.0
1.1.0

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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "index.js",
            "sha256":  "069f01e68bd9908d4478495200207a08cb4b0935af62c8b215637d6dcc210817",
            "tlsh":  "3d01ab9568fb6a3136e691d5662394223667ce1b2412de01b38d02781fc8498c17a3ed"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "global-error-handling-1.1.0.tgz",
            "hashes":  {
                "sha1":  "aabb2eea14154cea48b722bf962b4c68a1c33441",
                "sha512_sri":  "sha512-uEzSS0i2Kd237q6je8lTAwxF1FoS23virQytEflrcwu43AeTHbGYGmIt7N+Vjb4FsTbEpj8SiHjcHF7ifqaRWQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/global-error-handling/MAL-2026-20625.json"