Intel

AIKIDO-2026-480709

@nx/docker is vulnerable to OS Command Injection

OS Command InjectionGHSA-6vc5-vf29-ffr2 Published Today

73

High Risk

This Affects:

JS@nx/docker
21.4.0 - 22.7.7
Fixed in 22.7.8
23.0.0 - 23.1.0
Fixed in 23.1.1
Are you affected? Scan for Free

TL;DR

The Docker release executors build the image-existence check, docker tag, and docker push commands as shell strings, interpolating a project's repositoryName and registryUrl settings during nx release version and nx release publish. A configuration value containing shell syntax runs as an arbitrary command before Docker itself executes, and --dry-run does not prevent it because the injected command runs ahead of that check. The fix spawns Docker without a shell so image references are passed as literal arguments.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run nx release version or nx release publish for a Docker-based project.

Background info

@nx/docker is vulnerable to OS Command Injection in versions 21.4.0 - 22.7.7 and 23.0.0 - 23.1.0.

How to fix this

Upgrade the @nx/docker library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform