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

目标: 1000 元 · 已筹: 1359 元

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

pixsvg

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

Summary

Malicious code in pixsvg (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
55
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmpixsvg0.2.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-30T01:48:51Z","published":"2026-09-30T01:48:51Z","schema_version":"1.7.4","id":"MAL-2026-17313","summary":"Malicious code in pixsvg (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (23f6989954f196f485ff049ef7dc22bb800a57187e6bdc8bd0e002ed4bbc1db7)\nThe pixsvg module exports fetchDataFromSvg(svgData), which scans the input SVG for a comment of the form <!--HIDDEN_JS:([01]+)-->, reassembles the binary-encoded 1/0 sequence into a JavaScript string via binaryToData (parseInt(chunk,2) + String.fromCharCode), and passes the reconstructed string to eval(). The helper is exported on the package's public surface (module.exports.fetchDataFromSvg) but is not documented in the README and is unrelated to the advertised SVG image pipeline. Any consumer application that feeds externally-supplied SVG content through this exported function will execute attacker-controlled JavaScript in the host process. The binary-encoding-then-eval shape is a deliberate covert execution channel with no legitimate role in an image-processing library.\n","affected":[{"package":{"ecosystem":"npm","name":"pixsvg"},"versions":["0.2.0"],"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":"dist/commonjs/svg.js","sha256":"c2aa01b4c61279ea675500644839019cbf754a60a347f776e4e3529f2e92f2b3","tlsh":"4332105829f32051429371b9978f988c757ee513374ece95ba1c83e12f50478eaf3ba8"}],"package_integrity":[{"filename":"pixsvg-0.2.0.tgz","hashes":{"sha1":"3d8d5c711f27e6ffac39e401e2381a9118614d3f","sha512_sri":"sha512-GnOGxdd2SZldUsPp90F0mpbyJhJZ2RIxpcQtnTgEGewBC79DJPexlaBZHFW1vZY8CAZjy+s5wr56gyTmmRBt4Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/pixsvg/v/0.2.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020794","import_time":"2026-09-30T02:52:56.995517197Z","modified_time":"2026-09-30T01:48:51Z","sha256":"23f6989954f196f485ff049ef7dc22bb800a57187e6bdc8bd0e002ed4bbc1db7","source":"amazon-inspector","versions":["0.2.0"]}]}}

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