---
id: "GHSA-pg6x-gj9c-922c"
page: "https://infrastack.ai/live/GHSA-pg6x-gj9c-922c"
kind: "package"
aliases: ["GHSA-pg6x-gj9c-922c", "MAL-2026-10687"]
title: "Malicious code in selparsecss-selector (npm)"
severity: "critical"
cvss: null
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "selparsecss-selector", "note": "all versions", "fixed": [], "affected": "", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["malicious", "package"]
not_affected_if: []
published_at: "2026-07-15T17:54:33+00:00"
first_seen_at: "2026-11-11T17:28:37+00:00"
updated_at: "2026-11-11T17:30:36+00:00"
sources: [{"source": "osv-malicious", "url": "https://osv.dev/vulnerability/MAL-2026-10687", "first_seen_at": "2026-11-11T17:28:37+00:00"}]
exploit_sources: []
---

# Malicious code in selparsecss-selector (npm)

Link for people: https://infrastack.ai/live/GHSA-pg6x-gj9c-922c (this .md is for agents)

## Affected

- npm:selparsecss-selector affected range not listed fixed no fixed version listed

## Timeline

- 2026-11-11T17:28:37+00:00 osv-malicious https://osv.dev/vulnerability/MAL-2026-10687

## From the sources

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

## Source: amazon-inspector (f4f8e230628f3622bf88bcd590f98f8065a99ea3e71ef1bf3c330439b7671e1f)
selparsecss-selector@2.1.0 is a name-confusion fork of postcss-selector-parser: package.json declares author 'Ai Pyramid' <pyramid.info@gmail.com> while the LICENSE-MIT, source tree, API, and CHANGELOG are copied verbatim from the upstream postcss-selector-parser (Ben Briggs). The tarball ships dist/util/webpack.min.js, a ~40KB obfuscator.io-packed bundle with a rotated 757-entry string array and an RC4+base64+XOR string decoder, whose top-level IIFE destructures exec and execSync from child_process, branches on values returned by the os module, and calls process.exit(1) on specific conditions. A CSS-selector parser has no functional need for child_process shell execution. Additionally, propPaths.js and selectors/wrapper.js reconstruct filenames such as 'wrapper.js' and the extension '.jsc' from CSS-hex-escape sequences via an unesc helper, and the package declares bytenode as a runtime dependency; bytenode registers a require hook for opaque V8-bytecode.jsc files, providing a loader path for code that cannot be inspected as source. The combination — impersonated identity, obfuscated child_process-execution bundle, and hex-obfuscated bytenode load scaffolding — is a supply-chain attack shape targeting developers who intended to install postcss-selector-parser.

## Source: ghsa-malware (71610d10311b2ae1cfc5883ce92c047b73a466f928054f0e1aa2be09f486e4fe)
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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
