MAL-2026-10614

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/postcss-selector-minify/MAL-2026-10614.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10614
Aliases
  • GHSA-pjfj-gp2h-5692
Published
2026-07-14T20:18:29Z
Modified
2026-08-20T22:01:44.642779541Z
Summary
Malicious code in postcss-selector-minify (npm)
Details

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

Source: amazon-inspector (92fec62079856815ded46ba283769d3d3e0d20e08b6196b8698e08e2df6677ee)

Package is published as postcss-selector-minify (a word-order permutation of cssnano's widely used postcss-minify-selectors) and registers itself to PostCSS under the legitimate plugin's id postcss-minify-selectors, so consumers who mistype or misremember the cssnano plugin name receive a different publisher's package that self-identifies as the real one. On require(), the main entry performs a bare side-effect import of layerd-unit-codec-parser/cjs-runner (return value discarded) before any other work, and replaces the de-facto-standard postcss-selector-parser with layerd-unit-codec-parser/selector-parser (the standard parser is demoted to devDependencies). layerd-unit-codec-parser is an obscure package whose name has no relation to CSS or PostCSS; the /cjs-runner submodule path is shaped specifically to execute code on load. Installing this package silently pulls layerd-unit-codec-parser into the consumer's dependency tree and runs its cjs-runner module on every require of the wrapper.

Source: ghsa-malware (154dbe50ec546f28c72556086a952dcfd2e59a0f016d513b7bdd0e7e95602937)

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": [
        {
            "import_time": "2026-07-14T20:28:24.753368625Z",
            "sha256": "92fec62079856815ded46ba283769d3d3e0d20e08b6196b8698e08e2df6677ee",
            "modified_time": "2026-07-14T20:18:29Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010562",
            "versions": [
                "2.0.0"
            ]
        },
        {
            "import_time": "2026-08-20T14:26:12.003846997Z",
            "sha256": "154dbe50ec546f28c72556086a952dcfd2e59a0f016d513b7bdd0e7e95602937",
            "modified_time": "2026-08-20T13:57:30Z",
            "source": "ghsa-malware",
            "id": "GHSA-pjfj-gp2h-5692",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        },
        {
            "import_time": "2026-08-20T21:43:26.490936017Z",
            "sha256": "7d9be627bc0ae504389b558d7a6b4cc6b4c0564f35804ad31764d91c0b414dc7",
            "modified_time": "2026-08-20T21:16:20Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-018476",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / postcss-selector-minify

Package

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

Affected ranges

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

Affected versions

1.*
1.0.0
2.*
2.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/postcss-selector-minify/MAL-2026-10614.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "68505b605713084bb2138cac12e38447e40f6de25c558956449cf591706d7528",
            "tlsh": "a50221dd165512314d7fbbfb9e965518ff2602eb220091d1b8ae42401f72a144366eff",
            "path": "src/index.js"
        }
    ],
    "package_integrity": [
        {
            "filename": "postcss-selector-minify-2.0.0.tgz",
            "hashes": {
                "sha1": "8335df7c9e774806f61602c8284a35795f195386",
                "sha512_sri": "sha512-J5qvmnFs6yuF/otnXiGyu1Jmj8s6sEFrA07H4P+lMN9gN4E0oU5qtcdVPNgImZErIZhlsq70sDUir+jklHKmaw=="
            }
        }
    ]
}
cwes
[
    {
        "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",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]