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

目标: 1000 元 · 已筹: 1359 元

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

pathfix

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

Summary

Malicious code in pathfix (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpathfix*
npmpathfix3.0.10
npmpathfix3.0.11
npmpathfix3.0.12
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-25T23:02:36Z","published":"2026-06-17T04:18:57Z","schema_version":"1.7.4","id":"MAL-2026-5989","aliases":["GHSA-623x-x2wh-q9xq"],"summary":"Malicious code in pathfix (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f2527fa3618f01b694722f2a50297c248053dcdabf1b471ee9bdbdc6522bb838)\npathfix presents itself as a Stylus port of normalize.css but ships a copy of the unrelated normalize-path module with an appended remote-code-execution gadget. On module load, index.js invokes initPlugin(), which uses the `request` library to GET a configurable URL and evaluates the response body's `.cookie` field as JavaScript via `new (Function.constructor)('require', JSON.parse(b).cookie)(require)` (index.js line 71), giving the fetched code full `require` access on the installer's machine. initPlugin() is also re-exported as the package's main export, so any caller that passes a URL triggers the eval path. Although the default URL is blank in this published version, the gadget is fully wired and runs automatically on require(). The package metadata (description and keywords claiming normalize.css/stylus relevance) is a cover story to attract installs from developers searching for normalize-path or normalize.css, and the dependency list (express, sqlite3, axios, request) is unrelated to the package's stated purpose and inflates the install graph.\n\n## Source: ghsa-malware (fb5a3f82683552a878fb98f68cb1508752ba024715de996f07c8bf571be24248)\nAny 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.\n","affected":[{"package":{"ecosystem":"npm","name":"pathfix"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.0.10","3.0.11","3.0.12"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"b98936ed75a05f49275062037cb1bfb3857777fcb934a2609d5c907fc4317b59","tlsh":"6841ddd924fa6125c1a3e1810f8fc409b22ae1133359cac5b99c53546fe07b8a7e2f5a"},{"path":"package.json","sha256":"70da0de2494015c30d709a46727505fdb0b29546890e2deac3d0cdb7c49110f5","tlsh":"a9f02714c8204e2716d57196083c41d2aaa5cc4b4c10bc09738b09ac4b8d9bb24fe79c"}],"package_integrity":[{"filename":"pathfix-3.0.10.tgz","hashes":{"sha1":"18f6a2a6e76c8d8411b2b961cae462b7f5086157","sha512_sri":"sha512-KSQjj0FJRMC6y5HgM5lC+3XhLxP4vXiKDjfl3BAOzVZdFWOz95XYWltpHVoeO1sz7C9bkGT7ZBCFTKMyElI3TA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/pathfix/v/3.0.10"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-623x-x2wh-q9xq"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pathfix/v/3.0.11"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/pathfix/v/3.0.12"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"44585f45909a087f0880fc714e7fdc0977285884ea381e29c7b450ae7d5c2683","import_time":"2026-06-17T05:45:41.72869362Z","id":"IN-MAL-2026-006876","modified_time":"2026-06-17T04:18:57Z","versions":["3.0.10"]},{"source":"ghsa-malware","sha256":"fb5a3f82683552a878fb98f68cb1508752ba024715de996f07c8bf571be24248","import_time":"2026-06-25T07:29:46.469428847Z","id":"GHSA-623x-x2wh-q9xq","modified_time":"2026-06-25T06:02:17Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"cd0c5e1e66f1684c43dbd7f8d527ff0ab94de34186d3ac38df103a680c9c331e","import_time":"2026-06-25T23:00:35.013219237Z","id":"IN-MAL-2026-007568","modified_time":"2026-06-25T22:50:19Z","versions":["3.0.11"]},{"source":"amazon-inspector","sha256":"f2527fa3618f01b694722f2a50297c248053dcdabf1b471ee9bdbdc6522bb838","import_time":"2026-06-25T23:00:34.976100956Z","id":"IN-MAL-2026-007567","modified_time":"2026-06-25T22:50:16Z","versions":["3.0.12"]}]}}

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