38Source sends the broad process environment to a literal external destination.
L38: * Constructs the CommanderError class
L39: * @param {number} exitCode suggested exit code which could be used with process.exit
L40: * @param {string} code an id string representing the error
...
L964: var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
...
L1013: this._outputConfiguration = {
L1014: writeOut: (str) => process2.stdout.write(str),
L1015: writeErr: (str) => process2.stderr.write(str),
...
L1049: * @returns {Command[]}
L1050: * @private
L1051: */
CriticalHardcoded Runtime Data Exfiltration
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/cli.jsView on unpkg · L38 38* Constructs the CommanderError class
L39: * @param {number} exitCode suggested exit code which could be used with process.exit
L40: * @param {string} code an id string representing the error
...
L964: var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
...
L1013: this._outputConfiguration = {
L1014: writeOut: (str) => process2.stdout.write(str),
L1015: writeErr: (str) => process2.stderr.write(str),
...
L1049: * @returns {Command[]}
L1050: * @private
L1051: */
CriticalCredential Exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/cli.jsView on unpkg · L38 38Trigger-reachable chain: scripts.start -> dist/cli.js
L38: * Constructs the CommanderError class
L39: * @param {number} exitCode suggested exit code which could be used with process.exit
L40: * @param {string} code an id string representing the error
...
L964: var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
...
L1013: this._outputConfiguration = {
L1014: writeOut: (str) => process2.stdout.write(str),
L1015: writeErr: (str) => process2.stderr.write(str),
...
L1049: * @returns {Command[]}
L1050: * @private
L1051: */
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli.jsView on unpkg · L38 964var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
14101function execLogin(command, opts) {
L14102: const [bin, args] = isWindows ? ["bash", ["-c", command]] : [process.env.SHELL || "/bin/bash", ["-lc", command]];
L14103: const cap = opts.maxBuffer ?? 4 * 1024 * 1024;
L14104: return new Promise((resolve4) => {
L14105: let output = "";
...
L14114: try {
L14115: proc = (0, import_child_process3.spawn)(bin, args, {
L14116: cwd: opts.cwd,
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli.jsView on unpkg · L14101 •Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli.js:
headers["Authorization"] = "Basic " + authBuf.toString("base64");
fs13.writeFileSync(syncFile, "", "utf8");
var execString = "var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http" + (ssl ? "s" : "") + ".request;var options = " + JSON.stringify(opt...
delete opts.headers.authorization;
if (opts.auth && !options.headers.authorization) {
options.headers.authorization = "Basic " + Buffer.from(opts.auth).toString("base64");
var import_readline = __toESM(require("readline"));
const rl = import_readline.default.createInterface({
HighCredential Redirect Persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli.jsView on unpkg •Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/cli.js:
// node_modules/commander/lib/error.js
"node_modules/commander/lib/error.js"(exports2) {
// node_modules/commander/lib/argument.js
"node_modules/commander/lib/argument.js"(exports2) {
// node_modules/commander/lib/help.js
"node_modules/commander/lib/help.js"(exports2) {
// node_modules/commander/lib/option.js
"node_modules/commander/lib/option.js"(exports2) {
HighEntrypoint Foreign Package Code Overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
dist/cli.jsView on unpkg 14258const env = await spawnEnv();
L14259: return new Promise((resolve4, reject) => {
L14260: const proc = (0, import_child_process4.spawn)(bin, rest, { cwd: usableCwd(paths.root), env });
L14261: let stderr = "";
L14262: proc.stderr?.on("data", (d) => {
...
L14271: });
L14272: proc.stdin?.write(input);
L14273: proc.stdin?.end();
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/cli.jsView on unpkg · L14258 38Cross-file remote execution chain: dist/cli.js spawns index/index.js; helper contains network access plus dynamic code execution.
L38: * Constructs the CommanderError class
L39: * @param {number} exitCode suggested exit code which could be used with process.exit
L40: * @param {string} code an id string representing the error
...
L964: var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
...
L1013: this._outputConfiguration = {
L1014: writeOut: (str) => process2.stdout.write(str),
L1015: writeErr: (str) => process2.stderr.write(str),
...
L1049: * @returns {Command[]}
L1050: * @private
L1051: */
HighCross File Remote Execution Context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/cli.jsView on unpkg · L38 38Trigger-reachable credential exfiltration chain: scripts.start -> dist/cli.js
L38: * Constructs the CommanderError class
L39: * @param {number} exitCode suggested exit code which could be used with process.exit
L40: * @param {string} code an id string representing the error
...
L964: var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
...
L1013: this._outputConfiguration = {
L1014: writeOut: (str) => process2.stdout.write(str),
L1015: writeErr: (str) => process2.stderr.write(str),
...
L1049: * @returns {Command[]}
L1050: * @private
L1051: */
HighTrigger Reachable Credential Exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/cli.jsView on unpkg · L38 14258Trigger-reachable command-output exfiltration chain: scripts.start -> dist/cli.js
L14258: const env = await spawnEnv();
L14259: return new Promise((resolve4, reject) => {
L14260: const proc = (0, import_child_process4.spawn)(bin, rest, { cwd: usableCwd(paths.root), env });
L14261: let stderr = "";
L14262: proc.stderr?.on("data", (d) => {
...
L14271: });
L14272: proc.stdin?.write(input);
L14273: proc.stdin?.end();
HighTrigger Reachable Command Output Exfiltration
A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.
dist/cli.jsView on unpkg · L14258 13784patternName = generic_password
severity = medium
line = 13784
matchedText = url2.pas...ic";
38* Constructs the CommanderError class
L39: * @param {number} exitCode suggested exit code which could be used with process.exit
L40: * @param {string} code an id string representing the error
...
L964: var EventEmitter2 = require("node:events").EventEmitter;
L965: var childProcess = require("node:child_process");
L966: var path15 = require("node:path");
...
L1013: this._outputConfiguration = {
L1014: writeOut: (str) => process2.stdout.write(str),
L1015: writeErr: (str) => process2.stderr.write(str),
...
L1049: * @returns {Command[]}
L1050: * @private
L1051: */
LowWeak Crypto
Package source references weak cryptographic algorithms.
dist/cli.jsView on unpkg · L38