{"id":"MAL-2026-20174","summary":"Malicious code in prettier-plugin-solidity-import-order (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8d4255cb8bb7c6a9d484b5fce34cdda8d6751b0a2a673d898a8cd3ae2f8c1e0d)\nOn require (prettier auto-loads plugins declared in a project's config), index.js checks for CI or GITHUB_ACTIONS environment variables and, when set, POSTs a JSON payload over plain HTTP to the hardcoded bare IP 157.254.194.31 at path /v1/plugin-stats. The payload includes os.hostname(), process.cwd(), GITHUB_REPOSITORY, GITHUB_WORKFLOW, RUNNER_NAME, RUNNER_ID, node version, platform, and arch — identifying the installer's (often private) repository, CI workflow, runner identity, and on-disk workspace path to an undisclosed third party. The destination is a bare IPv4 address over cleartext HTTP with no first-party domain, no TLS, and no disclosure in README or package.json, and the package name resembles the legitimate prettier-plugin-solidity ecosystem.\n\n## Source: ghsa-malware (9e9d03bc4f7e6adbd8a770826e1c1a1eab99c6f04d19dac149c3667ad598d2dd)\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","aliases":["GHSA-9546-39ph-2v3p"],"modified":"2026-11-19T07:15:10.445990937Z","published":"2026-11-19T01:43:52Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-11-19T01:43:53Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"9e9d03bc4f7e6adbd8a770826e1c1a1eab99c6f04d19dac149c3667ad598d2dd","source":"ghsa-malware","id":"GHSA-9546-39ph-2v3p","import_time":"2026-11-19T02:22:34.709443118Z"},{"import_time":"2026-11-19T07:12:41.389488633Z","modified_time":"2026-11-19T06:51:22Z","sha256":"8d4255cb8bb7c6a9d484b5fce34cdda8d6751b0a2a673d898a8cd3ae2f8c1e0d","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-022852"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-9546-39ph-2v3p"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/prettier-plugin-solidity-import-order/v/1.0.0"}],"affected":[{"package":{"name":"prettier-plugin-solidity-import-order","ecosystem":"npm","purl":"pkg:npm/prettier-plugin-solidity-import-order"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"b04f78a17d96e54a8fcba935deed34198aa7892b496abe5535ae1984857cbb78","tlsh":"dea1335badfa54510596e56c2b2f8826f2b562831b0cbc50b91c93a81f2c53c43fee9d"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/prettier-plugin-solidity-import-order/MAL-2026-20174.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}