Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject shell metacharacters into package.json version string
-
DeliveryVictim runs CDK Docker bundling with nodeModules
-
ExploitOsCommand helper builds unsanitized shell command
-
ExecutionArbitrary command executes on build host
-
ImpactCompromise CI credentials and pipeline
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target uses the CDK NodejsFunction construct with Docker-based bundling AND has nodeModules specified, so that dependency version strings from package.json are processed by the OsCommand helper. The attacker must control the content of at least one dependency version string in that package.json (e.g., via a malicious PR, a poisoned dependency, or write access to the repo), and a developer or CI job must actually execute the bundling (UI:A, active user interaction). Limiting factors: the vector is local (AV:L), not remotely reachable; it does not affect projects that do not use Docker bundling with nodeModules; and it depends on an operator running the toolchain, so it cannot be triggered passively. |
| Impact | The vendor CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H, base 7.0) captures the real profile well: this is a build-time/supply-chain issue rather than a remotely reachable, unauthenticated network flaw. Exploitation is local to the machine running CDK, requires some position to control package.json content (PR:L), and requires an operator to actually run the bundling (UI:A, active user interaction), all of which materially lower the likelihood of opportunistic mass exploitation. Against those limits, impact is severe once triggered - full code execution with the host user's privileges (VC:H/VI:H/VA:H), which in a CI/CD context can mean compromise of build secrets and deployment pipelines. No EPSS score was provided in the input, the issue is not in CISA KEV, and no POC was supplied, so there is no evidence of active or automatable exploitation; treat this as a meaningful supply-chain hardening priority for CDK-based build pipelines, not an emergency internet-facing patch. |
| Exploit ScenarioDerived | An attacker who can influence a project's package.json - for example a malicious contributor via a pull request, or a compromised transitive dependency - inserts shell metacharacters into a dependency version string. When a developer or CI pipeline runs CDK synth/deploy for a NodejsFunction using Docker-based bundling with nodeModules, the OsCommand helper passes that string to the shell and the injected command executes on the build host with that user's privileges. No public POC was supplied, but the local, low-complexity nature of the flaw makes exploitation straightforward once the malicious package.json is ingested. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 01, 2026
OS command injection in AWS aws-cdk-lib lets an actor who controls a dependency version string in a project's package.json run arbitrary commands on the host executing the CDK toolchain. The flaw lives in the OsCommand helper of the NodejsFunction Docker bundling pipeline, which passes unsanitized version strings into a shell during nodeModules installation. There is no public exploit identified at time of analysis and it is not listed in CISA KEV; AWS has released a fixed version (v2.260.0).
RemediationAI
Vendor-released patch: v2.260.0 - upgrade aws-cdk-lib to 2.260.0 or later (release notes at https://github.com/aws/aws-cdk/releases/tag/v2.260.0; advisories at https://aws.amazon.com/security/security-bulletins/2026-050-aws/ and https://github.com/aws/aws-cdk/security/advisories/GHSA-vcrf-j523-4mrf). Until you can upgrade, reduce exposure by avoiding Docker-based bundling with nodeModules for NodejsFunction (for example by using local esbuild bundling or pre-built assets), which removes the vulnerable OsCommand path but changes how dependencies are packaged; additionally validate or pin dependency version strings in package.json and treat any package.json originating from untrusted contributors or third-party dependencies as untrusted input, and run CDK synth/bundling in isolated, least-privilege CI runners so a successful injection cannot reach long-lived credentials.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AWS CDK (Cloud Development Kit) is an infrastructure-as-code framework; the affected aws-cdk-lib construct library includes the NodejsFunction construct, which can bundle Lambda function dependencies inside a Docker container. During Docker-based bundling with nodeModules specified, the toolchain builds shell commands to install the named dependencies at their declared versions. The internal OsCommand helper composes these commands but fails to neutralize shell metacharacters (CWE-78, OS Command Injection) present in the dependency version strings drawn from package.json, so attacker-controlled version text is interpreted by the shell rather than treated as literal data. The affected component is identified by CPE cpe:2.3:a:aws:aws_cdk:*:*:*:*:*:*:*:* across all platforms.
Know when Docker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local build-time path (AV:L) needing control of package.json content (PR:L) and an operator running bundling (UI:R); yields full host code execution (C/I/A:H).
Primary rating from Vendor (AMZN).
CVSS VectorVendor: AMZN
Lifecycle Timeline
1DescriptionCVE.org
OS command injection in the NodejsFunction Docker bundling pipeline (OsCommand helper) in AWS aws-cdk-lib on all platforms might allow a actor who controls dependency version strings in a project's package.json file to execute arbitrary commands on the host running the CDK toolchain via injected shell metacharacters in the OsCommand helper. This issue requires the actor to control the content of a package.json dependency version string that is processed during Docker-based bundling with nodeModules specified.
To remediate this issue, users should upgrade to v2.260.0.
Blast Radius
ecosystem impact- 5 npm packages depend on aws-cdk-lib (4 direct, 1 indirect)
Ecosystem-wide dependent count for version 2.260.0.
Articles & Coverage 1
Executive ViewAI
AWS CDK (aws-cdk-lib) versions before 2.260.0 contain an OS command injection vulnerability in the Docker bundling pipeline that allows arbitrary command execution during CDK deployments through unsanitized dependency version strings. No public exploit identified at time of analysis. Organizations using AWS CDK for infrastructure management face potential compromise of their build pipelines and cloud infrastructure.
Apply vendor patch: upgrade to v2.260.0 or later. Interim: restrict package.json modifications to authorized maintainers and enforce code review for all dependency changes.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac
Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post
Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten
Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build
Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config
Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l
Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c
EUVD-2026-41125
GHSA-vcrf-j523-4mrf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB