{"id":"MAL-2026-18283","revision":"daa75e363b60432580a4c557954a3da4","records":[{"revision":"daa75e363b60432580a4c557954a3da4","observedAt":"2026-10-26T04:25:30.072+00:00","statement":{"source":"osv","id":"MAL-2026-18283","aliases":[],"title":"Malicious code in @greenlake/session (npm)","description":"@greenlake/session is a dependency-confusion package: it is described as a \"Compatibility shim\", uses inflated version numbers, and its README calls it an \"authorized dependency-confusion test\". Each listed version (3.0.0, 99.0.1, 1.0.0, 2.0.0) has a postinstall script that runs `node beacon.cjs` on npm install, and index.js calls the same code when the package is imported; it POSTs the hostname, install path and current working directory over plain HTTP to `http://185.158.107.175:8787/_ah/dc`, and index.js exports a Proxy that returns no-op functions so builds importing the real package keep running. The npm account wiseke published 14 such packages under the @greenlake, @sxm-web, @drone-js-ext and @ppa-web-components scopes between 2026-10-23 21:23 and 2026-10-25 14:28 UTC; index.js is byte-identical to that of ph-common (MAL-2026-1809), which sends to the same endpoint.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3255cc4148a62c7ba090d1912d41c572f3ce7ccb6db9cc131132cfd4a0970f43)\nThe package is a scoped-namespace shim (version 99.0.1) whose main entry re-exports a Proxy returning no-op functions, allowing consumer builds to resolve this name without errors. On `npm install` (postinstall hook) and on `require('@greenlake/session')` (main-module side effect), beacon.cjs issues a plain-HTTP POST to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc carrying a JSON payload containing os.hostname(), __dirname (install path), process.cwd(), and process.version. The inflated version number, scoped name mimicking an internal namespace, Proxy no-op surface, and automatic beacon on both install and import together form a dependency-confusion exfiltration shape: any build that resolves @greenlake/session from the public registry instead of the intended private source leaks internal host identifiers and install locations to the hardcoded endpoint.\n","state":0,"publishedAt":"2026-10-23T21:35:48+00:00","modifiedAt":"2026-10-26T03:30:05.1597968+00:00","affected":[{"ecosystem":"npm","name":"@greenlake/session","ranges":[],"versions":["99.0.1","3.0.0","1.0.0","2.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@greenlake/session/v/99.0.1","https://www.npmjs.com/package/@greenlake/session"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-18283","license":"OSV · upstream source license applies","key":"osv:MAL-2026-18283","identifiers":["MAL-2026-18283"]},"retained":false,"historicalAffected":[]}],"coverage":[]}