{"id":"MAL-2026-4617","revision":null,"records":[{"revision":"e2ff4aabb61f4d259a5227390ba1fb21","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4617","aliases":["GHSA-hrxx-vwgp-4xff"],"title":"Malicious code in n8n-nodes-pentest-rce (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2a813bc4a209e75b50151451de1c2a3c4a7e916b181b314416eafc43492b4eb5)\nOn `npm install`, the package's `postinstall` script runs a shell pipeline that reads the Kubernetes service-account token from `/var/run/secrets/kubernetes.io/serviceaccount/token` (truncated to 200 bytes), the pod namespace file, the first 20 sorted environment variables, and host fingerprinting data (`id`, `hostname`, `uname -a`, `ip addr`, `/etc/os-release`, `mount`, `/proc/1/status`, `/proc/1/cgroup`), emitting them between `=RCE_START=` / `=RCE_END=` markers. In typical n8n custom-node installation contexts (n8n cloud, CI build pipelines, container-image builds), install-time stdout is captured into build logs accessible to the attacker. The advertised node code in `dist/PentestNode.node.js` is a no-op (`return [this.getInputData()]`) and `index.js` exports `{}` — the package provides no functional value to a consumer; the install-time shell payload is the entire purpose. The package self-identifies as a 'pentest proof of concept' for RCE in its name and description. The exfiltrated K8s SA token grants API access to the cluster the installer runs in, and the env-var dump commonly contains cloud-provider credentials.\n\n## Source: ghsa-malware (be37ad1bbaaf66c7651d68891ed548cb6bfc88052fff44c4bee15a517f49e999)\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","state":0,"publishedAt":"2026-05-21T00:47:40+00:00","modifiedAt":"2026-08-20T16:30:12.5379781+00:00","affected":[{"ecosystem":"npm","name":"n8n-nodes-pentest-rce","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":["1.0.35","1.0.31","1.0.16","1.0.33","1.0.43","1.0.3","1.0.21","1.0.32","1.0.44","1.0.39","1.0.11","1.0.41","1.0.7","1.0.28","1.0.36","1.0.40","1.0.29","1.0.0","1.0.19","1.0.42","1.0.30","1.0.15","1.0.8","1.0.38","1.0.1","1.0.37"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.35","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.31","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.16","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.33","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.43","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.3","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.21","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.32","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.44","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.39","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.11","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.41","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.7","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.28","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.36","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.40","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.29","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.0","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.19","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.42","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.30","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.15","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.8","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.38","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.1","https://www.npmjs.com/package/n8n-nodes-pentest-rce/v/1.0.37","https://github.com/advisories/GHSA-hrxx-vwgp-4xff"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4617","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4617","identifiers":["MAL-2026-4617","GHSA-hrxx-vwgp-4xff"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-21T05:46:06.6313731+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-21T05:46:06.6313731+00:00","lastSuccessAt":"2026-11-21T05:46:06.794403+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:06.7944036+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-1d6c61c44cf3e269b6d60ed2fe0a3aa1f7e55445c7f170f16f2fa063bbf73db3-21bbe21b961431b49077ca5364987b01cf039dbf6c1c16869b3555240902401a","complete":true,"records":430022,"lastAttemptAt":"2026-11-21T05:46:05.9425341+00:00","lastSuccessAt":"2026-11-21T05:46:05.908623+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:05.9425341+00:00","snapshotPublishedAt":"2026-11-21T05:19:24+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0ff5fafcace04987879548d2f6e40406","complete":false,"records":13919,"lastAttemptAt":"2026-11-21T05:55:16.4918429+00:00","lastSuccessAt":"2026-11-21T05:55:15.47+00:00","error":"90 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-21T05:55:15.47+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13877,"expectedIdentifiers":13967,"failedIdentifiers":90},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-21T05:46:06.6313731+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-21T05:46:06.6313731+00:00","lastSuccessAt":"2026-11-21T05:46:06.7952141+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:06.7952144+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b466af56ae8f4061b064c38e0c70b535","complete":true,"records":13931,"lastAttemptAt":"2026-11-21T05:46:07.4070401+00:00","lastSuccessAt":"2026-11-21T04:46:11.167+00:00","error":null,"lastVerifiedAt":"2026-11-21T04:46:11.167+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13967,"expectedIdentifiers":13967,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-99c78bee98bf8a60587f33f568944b12d3afe17ecc41437c57b47e2204cce04d","complete":true,"records":9989,"lastAttemptAt":"2026-11-21T05:46:06.5828719+00:00","lastSuccessAt":"2026-11-21T00:54:34.963487+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:06.5828719+00:00","snapshotPublishedAt":"2026-11-21T00:03:07+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-21T05:46:05.9946663+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:05.9946663+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-2c09f95d48acb57436aa1dd2f0eec6f651dce8d1621b6978554be0f0b129faa4","complete":true,"records":3209,"lastAttemptAt":"2026-11-21T05:46:06.5964378+00:00","lastSuccessAt":"2026-11-20T23:48:55.8565941+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:06.5964378+00:00","snapshotPublishedAt":"2026-11-20T23:48:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-14439d295cda6d6706536c3efcb7f193a982609cf031218db7fa9ef26fdcc725","complete":true,"records":232850,"lastAttemptAt":"2026-11-21T05:46:06.470942+00:00","lastSuccessAt":"2026-11-21T03:47:49.8245357+00:00","error":null,"lastVerifiedAt":"2026-11-21T05:46:06.470942+00:00","snapshotPublishedAt":"2026-11-21T03:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}