MAL-2026-5837

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/postcss-minify-selector/MAL-2026-5837.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5837
Aliases
  • GHSA-gwv6-f7j6-4xc8
Published
2026-06-15T20:17:18Z
Modified
2026-07-08T23:46:58.278792528Z
Summary
Malicious code in postcss-minify-selector (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (1bc7341d6762a6209e4bde3d99f31f1a8650b6971e64a19547b9f35e7a51abb3)

Package 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.

Source: ghsa-malware (9187590d9e0f7032d1a10ec5d067b36f09ee78dc562cc966a3076af8f06c72d5)

Any 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2026-06-15T20:17:18Z",
            "id": "IN-MAL-2026-006705",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T21:33:34.147308739Z",
            "sha256": "1bc7341d6762a6209e4bde3d99f31f1a8650b6971e64a19547b9f35e7a51abb3",
            "versions": [
                "2.0.2"
            ]
        },
        {
            "modified_time": "2026-06-15T20:17:20Z",
            "id": "IN-MAL-2026-006706",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T21:33:34.331653541Z",
            "sha256": "7a12e5b695f34acfd56492479c547e8ce5af1f5916bd100466e392282620d6e3",
            "versions": [
                "2.0.1"
            ]
        },
        {
            "modified_time": "2026-06-15T20:17:21Z",
            "id": "IN-MAL-2026-006707",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T21:33:34.41397879Z",
            "sha256": "86f41c204dc9ab99c0389073b9026546d7553724d95f4c496ec81227f18c0f36",
            "versions": [
                "0.1.2"
            ]
        },
        {
            "modified_time": "2026-06-15T20:17:25Z",
            "id": "IN-MAL-2026-006708",
            "source": "amazon-inspector",
            "import_time": "2026-06-15T21:33:34.547643968Z",
            "sha256": "b13a4d7bb597dfb50336a460d0c064430fc60f900a1f61e2c3450996bd6f67ce",
            "versions": [
                "0.1.3"
            ]
        },
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-gwv6-f7j6-4xc8",
            "source": "ghsa-malware",
            "import_time": "2026-06-24T01:59:16.932693792Z",
            "modified_time": "2026-06-24T01:36:57Z",
            "sha256": "9187590d9e0f7032d1a10ec5d067b36f09ee78dc562cc966a3076af8f06c72d5"
        },
        {
            "sha256": "177398fc26fa52062fa9f432556af1934e644b20fac2defb691325d39d1b4a11",
            "id": "IN-MAL-2026-008443",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:29.36093558Z",
            "modified_time": "2026-07-08T20:11:17Z",
            "versions": [
                "0.1.10"
            ]
        },
        {
            "sha256": "3491f01f443d2244d485362554768518929752de44280b4c717aca1783977505",
            "id": "IN-MAL-2026-008447",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:29.860363816Z",
            "modified_time": "2026-07-08T20:11:54Z",
            "versions": [
                "0.1.7"
            ]
        },
        {
            "modified_time": "2026-07-08T20:12:29Z",
            "id": "IN-MAL-2026-008451",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:30.322663239Z",
            "sha256": "9e6f51c9faa7b4dcf48456bf671ae6891a2177b05bbce0e90734df002b4cadcf",
            "versions": [
                "0.1.9"
            ]
        },
        {
            "sha256": "a90c2e2c2caeb1af6b7a62e7ad64674576414802304485df5f6206edb3c068f6",
            "id": "IN-MAL-2026-008446",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:29.746768454Z",
            "modified_time": "2026-07-08T20:11:47Z",
            "versions": [
                "0.1.5"
            ]
        },
        {
            "modified_time": "2026-07-08T19:51:33Z",
            "id": "IN-MAL-2026-008309",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:12.23698255Z",
            "sha256": "b193257951c4569cdd33b2b7aea8f007b9651c4e8c0d8f0ffdc2442afd4a70b6",
            "versions": [
                "0.1.4"
            ]
        },
        {
            "modified_time": "2026-07-08T19:50:55Z",
            "id": "IN-MAL-2026-008305",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:11.655345931Z",
            "sha256": "d150dc929fd340d878fc373faeca1b3c77fa272bc1825692d17e9aba95343f7d",
            "versions": [
                "0.1.8"
            ]
        },
        {
            "modified_time": "2026-07-08T20:11:25Z",
            "id": "IN-MAL-2026-008444",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:29.497932226Z",
            "sha256": "dc242ae8e9c832b8aff88aa6992ca8cb94159a02055f960cf53f416848e79c80",
            "versions": [
                "0.1.11"
            ]
        },
        {
            "sha256": "4c768c496762a64c5dd19332f7a9ca4a14f95e1e38c09957ac4e2c30aa6cbcb5",
            "id": "IN-MAL-2026-008985",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T23:27:57.463525706Z",
            "modified_time": "2026-07-08T23:02:00Z",
            "versions": [
                "0.1.6"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / postcss-minify-selector

Package

Name
postcss-minify-selector
View open source insights on deps.dev
Purl
pkg:npm/postcss-minify-selector

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9
0.1.10
0.1.11
2.*
2.0.1
2.0.2

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "src/index.js",
            "tlsh": "dc0230dc165522310e7fbbfb9e966518ff2602eb220092d1b8ae41401f72a144362eff",
            "sha256": "9967eaf66e9ae8d72bb6fa5ec777457121ff0c18a85917232b4abfa37647336f"
        }
    ],
    "package_integrity": [
        {
            "filename": "postcss-minify-selector-2.0.2.tgz",
            "hashes": {
                "sha1": "d1d4ea59736855f38a2aee46bd3ff2f1ee1fdd53",
                "sha512_sri": "sha512-f9q9aYL3gM2cUR+npAwyvsojEN33sXdLAsgowIjtbNwwciDjWRGpDQj7pQCQqSoB6+nsZI6qMn+jpKIgLSnfww=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/postcss-minify-selector/MAL-2026-5837.json"
cwes
[
    {
        "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.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]