Description
npm-check-updates through 23.0.2, fixed in commit b554b84, contains a terminal escape sequence injection vulnerability that allows an attacker to embed arbitrary terminal control characters in a dependency's package.json homepage or repository URL fields. When a developer runs ncu with the --format homepage or --format repo option, unfiltered escape sequences are written directly to the terminal, enabling malicious output manipulation or other terminal-dependent effects.
Published: 2026-08-10
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

npm-check-updates through version 23.0.2 fails to filter terminal escape sequences that can be embedded in a dependency's package.json homepage or repository URL fields. When a developer runs the tool with the --format homepage or --format repo options, these unfiltered escape sequences are written directly to the terminal, permitting an attacker to inject arbitrary terminal control characters. The primary impact is malicious manipulation of terminal output or other terminal‑dependent behavior, which could obscure logs or distract developers. This flaw is identified as CWE‑150, reflecting insufficient validation of escape sequences passed to the terminal.

Affected Systems

The vulnerability affects the npm‑check‑updates utility produced by raineorshine, specifically all releases up to and including 23.0.2. Any environment that runs ncu against a dependency with a crafted homepage or repository URL is impacted; users of newer, patched releases are not affected.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate level of severity. The EPSS score is not available, and the issue is not listed in CISA KEV, suggesting current exploitation activity is unknown. Exploitation requires that the attacker can influence the dependency’s package.json (for example, by injecting a malicious package into the registry or modifying an existing one) and that the developer executes ncu with the vulnerable format options. The attack is local to the developer’s terminal and does not provide privilege escalation or remote code execution, but it can lead to deceptive output or side effects that affect security monitoring.

Generated by OpenCVE AI on August 10, 2026 at 21:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade npm‑check‑updates to a version above 23.0.2, which contains the patch that sanitizes escape sequences.
  • Ensure that dependencies are sourced from trusted registries or verify package contents before installing to prevent malicious homepage or repo URLs from entering the environment.
  • If an upgrade is currently infeasible, avoid using the --format homepage or --format repo options when running ncu, or redirect output to a file rather than the terminal to mitigate injection effects.

Generated by OpenCVE AI on August 10, 2026 at 21:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
Description npm-check-updates through 23.0.2, fixed in commit b554b84, contains a terminal escape sequence injection vulnerability that allows an attacker to embed arbitrary terminal control characters in a dependency's package.json homepage or repository URL fields. When a developer runs ncu with the --format homepage or --format repo option, unfiltered escape sequences are written directly to the terminal, enabling malicious output manipulation or other terminal-dependent effects.
Title npm-check-updates 23.0.2 Terminal Injection via Unsanitized Escape Sequences
Weaknesses CWE-150
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-10T20:19:40.888Z

Reserved: 2026-08-10T18:48:59.023Z

Link: CVE-2026-73035

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T21:15:07Z

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences