{"id":"MAL-2026-5837","summary":"Malicious code in postcss-minify-selector (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1bc7341d6762a6209e4bde3d99f31f1a8650b6971e64a19547b9f35e7a51abb3)\nPackage is published as `postcss-minify-selector` (singular) but its internal postcss plugin identifier is `postcss-minify-selectors` (plural) — the canonical name of the legitimate cssnano plugin. The published name is a one-character deletion from that target. The first executable line of `src/index.js` is a side-effect-only `require('postcss-minify-selector-parser/cjs-runner')` whose return value is discarded and which is not referenced anywhere else in the file; the plugin's actual selector-parsing functionality uses a different subpath, `require('postcss-minify-selector-parser/selector-parser')`, imported separately at line 6. The sibling dependency `postcss-minify-selector-parser` (declared as `^2.0.2` in package.json) is itself a typosquat-shaped name of the well-known `postcss-selector-parser`. The combination — typosquat lure name, plural-vs-singular mismatch with the real cssnano plugin, declared dependency on a second typosquat-shaped package, and an unconditional side-effect require of an otherwise-unused subpath of that dependency at the top of the main entry — is the canonical lure-plus-dropper shape: any consumer that `require()`s this package will silently load and execute whatever the `cjs-runner` module body of the sibling typosquat does at require time.\n\n## Source: ghsa-malware (9187590d9e0f7032d1a10ec5d067b36f09ee78dc562cc966a3076af8f06c72d5)\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-gwv6-f7j6-4xc8"],"modified":"2026-07-08T23:46:58.278792528Z","published":"2026-06-15T20:17:18Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"1bc7341d6762a6209e4bde3d99f31f1a8650b6971e64a19547b9f35e7a51abb3","id":"IN-MAL-2026-006705","import_time":"2026-06-15T21:33:34.147308739Z","versions":["2.0.2"],"modified_time":"2026-06-15T20:17:18Z"},{"source":"amazon-inspector","sha256":"7a12e5b695f34acfd56492479c547e8ce5af1f5916bd100466e392282620d6e3","id":"IN-MAL-2026-006706","import_time":"2026-06-15T21:33:34.331653541Z","versions":["2.0.1"],"modified_time":"2026-06-15T20:17:20Z"},{"source":"amazon-inspector","sha256":"86f41c204dc9ab99c0389073b9026546d7553724d95f4c496ec81227f18c0f36","id":"IN-MAL-2026-006707","import_time":"2026-06-15T21:33:34.41397879Z","versions":["0.1.2"],"modified_time":"2026-06-15T20:17:21Z"},{"source":"amazon-inspector","sha256":"b13a4d7bb597dfb50336a460d0c064430fc60f900a1f61e2c3450996bd6f67ce","id":"IN-MAL-2026-006708","import_time":"2026-06-15T21:33:34.547643968Z","versions":["0.1.3"],"modified_time":"2026-06-15T20:17:25Z"},{"source":"ghsa-malware","modified_time":"2026-06-24T01:36:57Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"import_time":"2026-06-24T01:59:16.932693792Z","id":"GHSA-gwv6-f7j6-4xc8","sha256":"9187590d9e0f7032d1a10ec5d067b36f09ee78dc562cc966a3076af8f06c72d5"},{"source":"amazon-inspector","modified_time":"2026-07-08T20:11:17Z","id":"IN-MAL-2026-008443","import_time":"2026-07-08T20:32:29.36093558Z","versions":["0.1.10"],"sha256":"177398fc26fa52062fa9f432556af1934e644b20fac2defb691325d39d1b4a11"},{"source":"amazon-inspector","modified_time":"2026-07-08T20:11:54Z","id":"IN-MAL-2026-008447","import_time":"2026-07-08T20:32:29.860363816Z","versions":["0.1.7"],"sha256":"3491f01f443d2244d485362554768518929752de44280b4c717aca1783977505"},{"source":"amazon-inspector","sha256":"9e6f51c9faa7b4dcf48456bf671ae6891a2177b05bbce0e90734df002b4cadcf","id":"IN-MAL-2026-008451","import_time":"2026-07-08T20:32:30.322663239Z","versions":["0.1.9"],"modified_time":"2026-07-08T20:12:29Z"},{"source":"amazon-inspector","modified_time":"2026-07-08T20:11:47Z","import_time":"2026-07-08T20:32:29.746768454Z","id":"IN-MAL-2026-008446","versions":["0.1.5"],"sha256":"a90c2e2c2caeb1af6b7a62e7ad64674576414802304485df5f6206edb3c068f6"},{"source":"amazon-inspector","sha256":"b193257951c4569cdd33b2b7aea8f007b9651c4e8c0d8f0ffdc2442afd4a70b6","id":"IN-MAL-2026-008309","import_time":"2026-07-08T20:32:12.23698255Z","versions":["0.1.4"],"modified_time":"2026-07-08T19:51:33Z"},{"source":"amazon-inspector","sha256":"d150dc929fd340d878fc373faeca1b3c77fa272bc1825692d17e9aba95343f7d","id":"IN-MAL-2026-008305","import_time":"2026-07-08T20:32:11.655345931Z","versions":["0.1.8"],"modified_time":"2026-07-08T19:50:55Z"},{"source":"amazon-inspector","sha256":"dc242ae8e9c832b8aff88aa6992ca8cb94159a02055f960cf53f416848e79c80","id":"IN-MAL-2026-008444","import_time":"2026-07-08T20:32:29.497932226Z","versions":["0.1.11"],"modified_time":"2026-07-08T20:11:25Z"},{"source":"amazon-inspector","modified_time":"2026-07-08T23:02:00Z","import_time":"2026-07-08T23:27:57.463525706Z","id":"IN-MAL-2026-008985","versions":["0.1.6"],"sha256":"4c768c496762a64c5dd19332f7a9ca4a14f95e1e38c09957ac4e2c30aa6cbcb5"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/2.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/2.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-gwv6-f7j6-4xc8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.11"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/postcss-minify-selector/v/0.1.6"}],"affected":[{"package":{"name":"postcss-minify-selector","ecosystem":"npm","purl":"pkg:npm/postcss-minify-selector"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.2","2.0.1","0.1.2","0.1.3","0.1.10","0.1.7","0.1.9","0.1.5","0.1.4","0.1.8","0.1.11","0.1.6"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/postcss-minify-selector/MAL-2026-5837.json","cwes":[{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"path":"src/index.js","sha256":"9967eaf66e9ae8d72bb6fa5ec777457121ff0c18a85917232b4abfa37647336f","tlsh":"dc0230dc165522310e7fbbfb9e966518ff2602eb220092d1b8ae41401f72a144362eff"}],"package_integrity":[{"filename":"postcss-minify-selector-2.0.2.tgz","hashes":{"sha1":"d1d4ea59736855f38a2aee46bd3ff2f1ee1fdd53","sha512_sri":"sha512-f9q9aYL3gM2cUR+npAwyvsojEN33sXdLAsgowIjtbNwwciDjWRGpDQj7pQCQqSoB6+nsZI6qMn+jpKIgLSnfww=="}}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}