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

目标: 1000 元 · 已筹: 1359 元

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

cors-security

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

Summary

Malicious code in cors-security (npm)

AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
235
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcors-security1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T12:57:59Z","published":"2026-08-05T12:57:59Z","schema_version":"1.7.4","id":"MAL-2026-12357","summary":"Malicious code in cors-security (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b1cff2c95bb175e36d5cb7a6e4880ed0f8816cbfb1dc7acef5d8173cf2cc40bb)\nThe CommonJS entry point of cors-security@1.0.1 exposes a getPlugin() API that issues an HTTPS GET to the hardcoded host workconfig.vercel.app and passes the response body directly to new Function('require', data)(require), running attacker-controlled JavaScript inside the consumer's Node process with access to require. TLS certificate verification is disabled on that request (rejectUnauthorized: false). The remote-loader code is present only in the CJS entry and absent from the ESM variant, and does not relate to the package's advertised SVG-utility purpose (name svgcraft, description \"Professional zero-dependency SVG utilities\"). Any consumer that requires the package and invokes the returned function executes whatever content the operator of workconfig.vercel.app serves at that moment.\n","affected":[{"package":{"ecosystem":"npm","name":"cors-security"},"versions":["1.0.1"],"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":"src/index.cjs","sha256":"9d418c7b6dc5ddb393c8622f2af4cf3833869b7c8ff36bf774b40853b6ffe778","tlsh":"d10274287cf364920b63709d45cb909c74b6e507305bda50ea6c49012fa87ace1f7afd"},{"path":"package.json","sha256":"8e8c4dc00e7effac49b42385c4e9db0ed9f2e7689190ca1f492470611927ef25","tlsh":"10117200d2aa1e0310cae9a16c6d469aa031880749947d2637cf4a7c1fcca7f21fe2bd"}],"package_integrity":[{"filename":"cors-security-1.0.1.tgz","hashes":{"sha1":"c618a93fedecf07794ee5e53e2f805f2c50b12cd","sha512_sri":"sha512-PvTw8fjG+HQk063OFfUXj4b2LE/F4e+IElRm/a+SsJmaILZ8d0/MlgjE4S4f3RB8rNmvwGTXnkIg2CTecESbyg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/cors-security/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014827","import_time":"2026-08-05T13:08:49.574039087Z","modified_time":"2026-08-05T12:57:59Z","sha256":"b1cff2c95bb175e36d5cb7a6e4880ed0f8816cbfb1dc7acef5d8173cf2cc40bb","source":"amazon-inspector","versions":["1.0.1"]}]}}

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