npm-check-updates

Warn

Audited by Gen Agent Trust Hub on Jul 13, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill exposes the --doctor mode of ncu, which allows for the execution of custom installation and test commands via the --doctorInstall and --doctorTest flags. These parameters are executed in the shell, enabling arbitrary command execution.
  • [REMOTE_CODE_EXECUTION]: The tool supports loading configuration from .ncurc.js files, which can contain executable JavaScript logic. An attacker could exploit this by placing a malicious configuration file in a repository that the agent is asked to analyze.
  • [EXTERNAL_DOWNLOADS]: The --registry flag permits the tool to fetch version information from arbitrary remote URLs, introducing a risk of ingesting untrusted data from third-party sources.
  • [DATA_EXFILTRATION]: Project dependency names and versions can be sent to external servers by configuring a custom registry URL, which could lead to information leakage from private projects.
  • [PROMPT_INJECTION]: The skill processes untrusted project files, creating an attack surface for indirect prompt injection. 1. Ingestion points: package.json files, .ncurc configuration files, and --packageData string input. 2. Boundary markers: No delimiters or protective instructions are used to separate file content from agent instructions. 3. Capability inventory: The skill can perform filesystem writes, shell command execution, and network requests. 4. Sanitization: No sanitization or validation of the ingested file content is performed.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 13, 2026, 10:41 AM
Security Audit — agent-trust-hub — npm-check-updates