2456const which = await new Promise((res) => {
L2457: const p = spawn('which', ['code-server']);
L2458: let out = '';
...
L2465: await new Promise((res, rej) => {
L2466: const install = spawn('sh', ['-c', 'curl -fsSL https://code-server.dev/install.sh | sh'], {
L2467: env: { ...process.env },
L2468: stdio: ['ignore', 'pipe', 'pipe'],
CriticalSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution with blocking evidence.
dist/index.jsView on unpkg · L2456 11setMaxListeners(50);
L12: import { createServer, request as httpRequest } from 'http';
L13: import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, mkdtempSync, cpSync, rmSync, statSync, utimesSync, createWriteStream } from 'node:fs';
...
L15: import { fileURLToPath } from 'node:url';
L16: import { spawn } from 'node:child_process';
L17: import { randomUUID, randomBytes } from 'node:crypto';
...
L19: import { createRequire } from 'node:module';
L20: // 0.9.71: createRequire for resolving package.json versions inside ESM
L21: const __sdkVersionRequire = createRequire(import.meta.url);
...
L23: import { PassThrough } from 'node:stream';
L24: import { createGunzip } from 'node:zlib';
L25: // Resolve __dirname for this ESM module so we can find sibling files (e.g.
CriticalCredential Exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/index.jsView on unpkg · L11 2456const which = await new Promise((res) => {
L2457: const p = spawn('which', ['code-server']);
L2458: let out = '';
L2459: p.stdout?.on('data', (d) => { out += d.toString(); });
L2460: p.on('close', () => res(out.trim()));
...
L2465: await new Promise((res, rej) => {
L2466: const install = spawn('sh', ['-c', 'curl -fsSL https://code-server.dev/install.sh | sh'], {
L2467: env: { ...process.env },
...
L2469: });
L2470: install.stdout?.on('data', (d) => process.stdout.write(d));
L2471: install.stderr?.on('data', (d) => process.stderr.write(d));
CriticalCommand Output Exfiltration
Source executes local commands and sends command output to an external endpoint.
dist/index.jsView on unpkg · L2456 11setMaxListeners(50);
L12: import { createServer, request as httpRequest } from 'http';
L13: import { existsSync, readdirSync, readFileSync, mkdirSync, writeFileSync, mkdtempSync, cpSync, rmSync, statSync, utimesSync, createWriteStream } from 'node:fs';
...
L15: import { fileURLToPath } from 'node:url';
L16: import { spawn } from 'node:child_process';
L17: import { randomUUID, randomBytes } from 'node:crypto';
...
L19: import { createRequire } from 'node:module';
L20: // 0.9.71: createRequire for resolving package.json versions inside ESM
L21: const __sdkVersionRequire = createRequire(import.meta.url);
...
L23: import { PassThrough } from 'node:stream';
L24: import { createGunzip } from 'node:zlib';
L25: // Resolve __dirname for this ESM module so we can find sibling files (e.g.
CriticalDownload Execute
Source downloads or fetches remote code and executes it.
dist/index.jsView on unpkg · L11 •matchType = previous_version_dangerous_delta
matchedPackage = osborn@0.9.190
matchedIdentity = npm:b3Nib3Ju:0.9.190
similarity = 0.714
summary = stored previous version shares package body but lacks this dangerous source file
CriticalPrevious Version Dangerous Delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/index.jsView on unpkg