# SubQuery @subql/common 5.8.3 published with credential stealer + backdoor · pwn.watch > On Oct 5 2026 @subql/common 5.8.3 was published to npm through SubQuery's own GitHub Actions trusted publisher, after a short-lived branch changed the release step to swap the built package for a tarball downloaded from ci-artifacts.dev. The payload ran on install (postinstall) and on import, stole CI/cloud/GitHub/npm/Kubernetes/Vault/SSH and AI-tool credentials, offered a reverse shell, and with a workflow-scoped token tried to push a secret-dumping workflow. It was live about 50 minutes; 5.8.2 is the safe version. Many @subql packages accept 5.8.3 through their version ranges. Page: https://pwn.watch/i/subql-common-npm-backdoor · generated 2026-12-06T19:58:06.567Z ## Status - Severity: critical · status: closed · patch: patched - Product: @subql/common (npm) and downstream @subql/* packages - Started: 2026-10-05 · closed: 2026-10-10 - CVEs: GHSA-9333-3c4x-x3h5, MAL-2026-17571 - Affected: @subql/common 5.8.3; @subql/common 5.8.3-onf-rt1 (attacker canary, no payload found; 'redteam' dist-tag still points to it); Downstream ranges that resolve to 5.8.3, e.g. @subql/cli 6.6.3, @subql/node-core 19.3.1, @subql/query 2.25.0, @subql/node-ethereum 6.5.0 - Fixed in: @subql/common 5.8.2 (npm 'latest') ## Follow this incident - RSS (one item per update): https://pwn.watch/i/subql-common-npm-backdoor/feed.xml - JSON Feed: https://pwn.watch/i/subql-common-npm-backdoor/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/subql-common-npm-backdoor.json - This file: https://pwn.watch/i/subql-common-npm-backdoor/llms.txt ## Updates (newest first) - 2026-10-10: SubQuery maintainer: compromised token deleted, security review started. (https://github.com/subquery/subql/issues/3047) - 2026-10-06: GMO Flatt Security publishes payload analysis and response guidance. (https://flatt.tech/research/posts/subql-common-npm-supply-chain-attack/) - 2026-10-05T12:46Z: GitHub publishes malware advisory GHSA-9333-3c4x-x3h5; version removed from npm (~50 minutes live); 'latest' back to 5.8.2. (https://github.com/advisories/GHSA-9333-3c4x-x3h5) - 2026-10-05T12:14Z: StepSecurity opens security issue #3047 in subquery/subql. (https://github.com/subquery/subql/issues/3047) - 2026-10-05T11:56Z: Malicious @subql/common 5.8.3 published via the repo's GitHub Actions trusted publisher (canary 5.8.3-onf-rt1 published ~32 min earlier). (https://www.stepsecurity.io/blog/subql-ecosystem-compromised) ## Fix brief # Security brief: SubQuery @subql/common 5.8.3 published with credential stealer + backdoor Source: https://pwn.watch/i/subql-common-npm-backdoor · status: closed (closed Oct 10, 2026) · severity: critical · updated Oct 22, 2026, 12:04 UTC ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is On Oct 5 2026 @subql/common 5.8.3 was published to npm through SubQuery's own GitHub Actions trusted publisher, after a short-lived branch changed the release step to swap the built package for a tarball downloaded from ci-artifacts.dev. The payload ran on install (postinstall) and on import, stole CI/cloud/GitHub/npm/Kubernetes/Vault/SSH and AI-tool credentials, offered a reverse shell, and with a workflow-scoped token tried to push a secret-dumping workflow. It was live about 50 minutes; 5.8.2 is the safe version. Many @subql packages accept 5.8.3 through their version ranges. Severity detail: Malicious package with credential theft + remote shell; live ~50 minutes; no confirmed victims published - Product: @subql/common (npm) and downstream @subql/* packages - CVE / advisory ids: GHSA-9333-3c4x-x3h5, MAL-2026-17571 ## Affected versions - @subql/common 5.8.3 - @subql/common 5.8.3-onf-rt1 (attacker canary, no payload found; 'redteam' dist-tag still points to it) - Downstream ranges that resolve to 5.8.3, e.g. @subql/cli 6.6.3, @subql/node-core 19.3.1, @subql/query 2.25.0, @subql/node-ethereum 6.5.0 ## Check whether you're affected No generic command applies (the product is a hosted service, appliance or desktop app). Check the installed version in its admin UI / About screen and compare with the versions above. ## Fix Upgrade to one of these fixed versions (or later on the same branch): - @subql/common 5.8.2 (npm 'latest') After upgrading, re-run the checks above and redeploy/restart the affected services. ## Secrets to rotate This incident involves possible credential exposure. Rotate any credentials (API keys, tokens, env vars, SSH keys) that were present on affected systems or in affected builds while vulnerable/compromised versions were installed, and review access logs. ## Specific notes Search lockfiles for @subql/common 5.8.3; if present, treat the host/runner as compromised, rebuild, and rotate every reachable credential. --ignore-scripts is NOT enough (the payload also runs on import). Block ci-artifacts.dev; look for manifest-cache.js and a branch named dependabot/github_actions/format/setup-formatter. ## Latest updates - Oct 10, 2026: SubQuery maintainer: compromised token deleted, security review started. - Oct 6, 2026: GMO Flatt Security publishes payload analysis and response guidance. - Oct 5, 2026: Malicious @subql/common 5.8.3 published via the repo's GitHub Actions trusted publisher (canary 5.8.3-onf-rt1 published ~32 min earlier). - Oct 5, 2026: StepSecurity opens security issue #3047 in subquery/subql. - Oct 5, 2026: GitHub publishes malware advisory GHSA-9333-3c4x-x3h5; version removed from npm (~50 minutes live); 'latest' back to 5.8.2. ## Advisories - [Malicious code in @subql/common (GHSA-9333-3c4x-x3h5)](https://github.com/advisories/GHSA-9333-3c4x-x3h5) (GitHub) - [MAL-2026-17571](https://osv.dev/vulnerability/MAL-2026-17571) (OSV) ## Write-ups & news - [SubQuery Ecosystem Compromise: Hidden Credential Theft and Backdoors](https://www.stepsecurity.io/blog/subql-ecosystem-compromised) - [Software Supply Chain Attack on @subql/common: Overview and Response Guidance](https://flatt.tech/research/posts/subql-common-npm-supply-chain-attack/) - [[security] Malicious release @subql/common@5.8.3 (issue #3047)](https://github.com/subquery/subql/issues/3047) ## Caveats Closed because the malicious version was pulled within ~50 minutes, latest is 5.8.2, and SubQuery revoked the compromised token on Oct 10. SubQuery has published no post-mortem; issue #3047 is still open. Both StepSecurity and Flatt describe the payload's capabilities but no confirmed victims. Not attributed to Shai-Hulud/ChainDrop by any primary source. --- Machine-readable: https://pwn.watch/i/subql-common-npm-backdoor.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.