目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

jwtmode

MAL-2026-6093
2026-06-18 04:09:05
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in jwtmode (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmjwtmode1.0.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-18T04:09:05Z","published":"2026-06-18T04:09:05Z","schema_version":"1.7.4","id":"MAL-2026-6093","summary":"Malicious code in jwtmode (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b59454613cc025e514269f55b41a9da6a5da1db70e73e583bc79d97727e9528a)\nOn require('jwtmode'), decode.js immediately invokes getThirdCookie(), which performs an HTTP GET to https://jsonkeeper.com/b/AZ9ZF, takes the response field response.data.errCode, passes it to `new Function.constructor('require', errCode)`, and invokes the resulting function with the real Node `require`. This is unconditional remote code execution at import time from a mutable, attacker-controlled paste host, with full Node capability (filesystem, network, child_process) via `require`. The package additionally impersonates auth0's jsonwebtoken: it is named jwtmode, declares `author: auth0`, points its repository field at a non-existent github.com/auth0/node-jwtmode, and re-exports jsonwebtoken's public API surface (decode, JsonWebTokenError, NotBeforeError, TokenExpiredError) — a brand-impersonation lure to trick developers into installing it instead of jsonwebtoken. Any project that requires jwtmode will execute whatever JavaScript the operator of jsonkeeper.com/b/AZ9ZF chooses to serve at that moment.\n","affected":[{"package":{"ecosystem":"npm","name":"jwtmode"},"versions":["1.0.4"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"decode.js","sha256":"f08ebf8d613913678be0788cdb3c3b3872dfa87ee4001ac2d432b7b72306d06f","tlsh":"16219e9c59eeb1144ba730e1c61f54223229f203358ecac0775c83d5afa5968f973bd5"},{"path":"package.json","sha256":"f452cd692fe2c7919c9989238ce7068052f52afe3fa1fb0ede8a1939ee506f6c","tlsh":"96215712cd649db31adda1e59d2d008276658c478d84bd0c33ea074c4f6d53f25feaac"}],"package_integrity":[{"filename":"jwtmode-1.0.4.tgz","hashes":{"sha1":"262b4f36f0a35169ec6d78ca045bf5c79d2873b5","sha512_sri":"sha512-IvLcmkTthtv51TmRaV5Be9eWmxZuv0pDQkryokTRdWLZLsZ1s9qX8IPV8Y4dF6i8DOw+ezhrqFnrTD08nyDIgQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/jwtmode/v/1.0.4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-006975","import_time":"2026-06-18T05:42:06.272970901Z","modified_time":"2026-06-18T04:09:05Z","sha256":"b59454613cc025e514269f55b41a9da6a5da1db70e73e583bc79d97727e9528a","source":"amazon-inspector","versions":["1.0.4"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0