Intel

AIKIDO-2026-736406

npm-check-updates is vulnerable to Terminal Escape Sequence Injection

Terminal Escape Sequence InjectionCVE-2026-73035 Published 2 days ago

43

Medium Risk

This Affects:

JSnpm-check-updates
17.0.0 - 23.0.2
Fixed in 23.1.0
Are you affected? Scan for Free

TL;DR

The tool prints package and npm registry metadata such as homepage URLs, repository URLs, error text, peer dependency ranges, and the engines.node value directly to the terminal. When run with the --format homepage or --format repo option, these fields are emitted without stripping ANSI escape or other terminal control sequences. A package whose homepage or repository field embeds crafted control sequences can overwrite rendered lines, hide output, or trigger other terminal-dependent effects when a developer inspects it. The fix adds a sanitizeForDisplay helper that removes VT control characters and bare control characters before the values are displayed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the tool with the --format homepage or --format repo option against packages whose homepage or repository metadata can carry untrusted values.

Background info

npm-check-updates is vulnerable to Terminal Escape Sequence Injection in versions 17.0.0 - 23.0.2.

How to fix this

Upgrade the npm-check-updates library to the patch version.