Skip to main content

AWS CDK CVE-2026-13760

| EUVDEUVD-2026-41125 HIGH
OS Command Injection (CWE-78)
2026-07-01 AMZN GHSA-vcrf-j523-4mrf
7.0
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Inject shell metacharacters into package.json version string
  2. Delivery
    Victim runs CDK Docker bundling with nodeModules
  3. Exploit
    OsCommand helper builds unsanitized shell command
  4. Execution
    Arbitrary command executes on build host
  5. Impact
    Compromise 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

AWS CDK 0 <2.260.0

Affected Packages

npm aws-cdk-lib fix: 2.260.0
euvd aws_cdk fix: 2.260.0

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

Vendor (AMZN) PRIMARY 7.0 HIGH
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
vuln.today AI 7.3 HIGH

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).

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (AMZN).

CVSS VectorVendor: AMZN

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 01, 2026 - 19:22 NVD
7.3 (HIGH) 7.0 (HIGH)

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.6%
Top 55% exploitable
Prevalence
High
widely-used AWS infrastructure-as-code toolkit in cloud dev/CI pipelines
Threat Intel
1
1 sources
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Docker

View all
CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2019-5736 HIGH POC
8.6 Feb 11

runc through version 1.0-rc6 (used in Docker before 18.09.2) contains a container escape vulnerability that allows attac

CVE-2023-32077 HIGH POC
7.5 Aug 24

Netmaker makes networks with WireGuard. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no a

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2023-5815 HIGH POC
8.1 Nov 22

The News & Blog Designer Pack - WordPress Blog Plugin - (Blog Post Grid, Blog Post Slider, Blog Post Carousel, Blog Post

CVE-2026-66384 MEDIUM POC
5.3 Aug 12

Path traversal in JFrog Artifactory (CWE-22) enables an authenticated low-privilege user to write data outside the inten

CVE-2014-9357 CRITICAL
10.0 Dec 16

Docker 1.3.2 allows remote attackers to execute arbitrary code with root privileges via a crafted (1) image or (2) build

CVE-2026-52806 CRITICAL POC
9.9 Jun 23

Remote code execution in Gogs through 0.14.2 allows authenticated users (and unauthenticated attackers on default-config

CVE-2025-14707 HIGH POC
8.9 Dec 15

Unauthenticated remote command injection in SGWBOX N3 firmware 2.0.25 lets attackers execute arbitrary operating-system

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2026-34156 CRITICAL POC
9.9 Mar 30

Remote code execution in NocoBase Workflow Script Node (npm @nocobase/plugin-workflow-javascript) allows authenticated l

CVE-2019-15752 HIGH POC
7.8 Aug 28

Docker Desktop Community Edition before 2.1.0.1 allows local users to gain privileges by placing a Trojan horse docker-c

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy