MAL-2026-5477Malicious code in mcp-server-figma (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | mcp-server-figma | * |
| npm | mcp-server-figma | 0.0.1 |
| npm | mcp-server-figma | 0.0.2 |
{"schema_version":"1.7.4","id":"MAL-2026-5477","published":"2026-06-09T20:34:25Z","modified":"2026-08-20T15:28:05.306848459Z","aliases":["GHSA-8j33-qh42-vjc6"],"summary":"Malicious code in mcp-server-figma (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (474223e0d5456564c1ae112031e3b8f276850a79f59cc93ed3a04805de291f20)\nPackage squats the unscoped name `mcp-server-figma`, which AI coding agents and developers commonly invoke via `npx mcp-server-figma` expecting the legitimate Figma MCP server (which uses a scoped name). The package.json declares `scripts.postinstall: node index.js`, which fires automatically on `npm install`. index.js (line 18) hardcodes `ENDPOINT = 'https://npx-canary-log.vulnerable-live.workers.dev/log'` and POSTs a JSON payload containing `os.hostname()`, `process.cwd()`, `process.env.npm_config_user_agent`, Node version, `os.platform()`, and a timestamp to that Cloudflare Workers endpoint. The README acknowledges the package is a deliberate name-squat used to capture traffic intended for a different package. Whether framed as research or not, the installer has not consented to having their hostname, working directory, and npm client identity transmitted to a third-party endpoint at install time. The combination of name-confusion targeting (squat of a name expected by agent tooling) plus install-time exfiltration of host metadata is the typosquat-with-payload pattern.\n\n## Source: ghsa-malware (cd1c640ad7c3eb7e2850f240d9920938e882d57fd57ac25419f7a0eb5d73f76d)\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":{"name":"mcp-server-figma","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1","0.0.2"],"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"}],"indicators":{"domains":["npx-canary-log.vulnerable-live.workers.dev"],"evidence_files":[{"path":"index.js","sha256":"45bb30a72275b5e74aeef9851dbc24c2e8a8b033892a419887830aae6e06f1a9","tlsh":"f53195e180f805351bee46d3e1e9a899a36ff126360678f0b45e02291fc94980771cd2"},{"path":"package.json","sha256":"ed21d2fa56cea871dcb3a304def779eb45be0bb6d0921a08bcc47cda0039403f","tlsh":"55f09e60d87595331eed47e14476b488f679a9161240bc2913d3501cd64d5bb03bf25c"}],"package_integrity":[{"filename":"mcp-server-figma-0.0.1.tgz","hashes":{"sha1":"dabf80b113452ea890aaeb48008e894b4a93010a","sha512_sri":"sha512-kvLuLAKi5DFFqvNK7neLaPitYg6tkrPoTUBfBy54tbGtRWN0b7+hFAqa25YIU23ZIPS+gpN5WeZxTR7r7GWkTw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mcp-server-figma/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/mcp-server-figma/v/0.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8j33-qh42-vjc6"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-005226","import_time":"2026-06-09T20:45:56.74541785Z","modified_time":"2026-06-09T20:34:25Z","sha256":"29060c34630f9510a380d9a36111d525f2b33db41ee4d079e7d63b3e7c697c76","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-005225","import_time":"2026-06-09T20:45:56.617560075Z","modified_time":"2026-06-09T20:34:25Z","sha256":"474223e0d5456564c1ae112031e3b8f276850a79f59cc93ed3a04805de291f20","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-005792","import_time":"2026-06-12T19:43:33.996271781Z","modified_time":"2026-06-12T19:02:00Z","sha256":"907890012c3e47c5c0a67ab7f1d2c9a5f0c913aeb6fabf95c8f53c5954f33a91","source":"amazon-inspector","versions":["0.0.2"]},{"id":"IN-MAL-2026-005793","import_time":"2026-06-12T19:43:34.104692673Z","modified_time":"2026-06-12T19:02:01Z","sha256":"ae79ea626ab6479ab2b5bec20a357cf44dac76f2603e0cf0c0afc34fe9550395","source":"amazon-inspector","versions":["0.0.2"]},{"id":"GHSA-8j33-qh42-vjc6","import_time":"2026-08-20T15:26:15.525793102Z","modified_time":"2026-08-20T14:26:03Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"cd1c640ad7c3eb7e2850f240d9920938e882d57fd57ac25419f7a0eb5d73f76d","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0