MAL-2026-20255

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/item-validates/MAL-2026-20255.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20255
Aliases
  • GHSA-pm45-rm93-2g47
Published
2026-11-19T18:38:36Z
Modified
2026-11-19T20:15:04Z
Summary
Malicious code in item-validates (npm)
Details

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

Source: amazon-inspector (9b0999b6e5a124eaac499d7abb8b5d88ce0a524101615e533f890cbe1aae87f2)

On require('item-validates'), index.js unconditionally spawns lib/check-items.js as a detached, unref'd background process with stdio:'ignore'. That daemon fetches a JSON payload from https://game.spawnrealm.com/api/item-realtime?key=mykeya1b2c3 and executes the returned payload.code via new Function('require', 'module', payload.code), passing the host's real require and a module object. This gives the operator of game.spawnrealm.com arbitrary, mutable remote code execution on the installer's host every time the module is loaded, running in a hidden process that outlives the importing script. RSA signing of the payload only authenticates the author as the code source; it does not limit what the fetched code can do. There is no documented opt-out, and the destination is a hardcoded author-controlled endpoint, not a configurable one.

Source: ghsa-malware (176dbc4debac5906d3fdda73e70e096e29c165a3e24f26eb0c123101661bcddc)

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":  "GHSA-pm45-rm93-2g47",
            "import_time":  "2026-11-19T19:18:25.454361858Z",
            "modified_time":  "2026-11-19T18:38:37Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "176dbc4debac5906d3fdda73e70e096e29c165a3e24f26eb0c123101661bcddc",
            "source":  "ghsa-malware"
        },
        {
            "id":  "IN-MAL-2026-022892",
            "import_time":  "2026-11-19T20:12:41.874779106Z",
            "modified_time":  "2026-11-19T19:43:27Z",
            "sha256":  "9b0999b6e5a124eaac499d7abb8b5d88ce0a524101615e533f890cbe1aae87f2",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / item-validates

Package

Name
item-validates
View open source insights on deps.dev
Purl
pkg:npm/item-validates

Affected ranges

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

Affected versions

1.*
1.0.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":  "lib/check-items.js",
            "sha256":  "d06c5fd7d1e210037659bebf18a340ee6cb285ba425d2100cc131b4d4558b191",
            "tlsh":  "dba1668ead4b92371eb742f44317601afb5e91832690d255bbced34c2fb851c9325cea"
        },
        {
            "path":  "index.js",
            "sha256":  "a7a591a2164308c4a490fe7eed71af48272c371fb65e2d18c3ac817412849db2",
            "tlsh":  "6d1121e632caa6663c32afe1e9338111be16c11277000101b8edbad60fe19864363cad"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/item-validates/MAL-2026-20255.json"