Skip to main content

AWS Amplify Codegen-UI CVE-2026-18245

| EUVDEUVD-2026-51268 MEDIUM
Code Injection (CWE-94)
2026-07-30 AMZN
6.4
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to Amplify Studio (PR:L)
  2. Delivery
    Craft component/theme schema with malicious non-identifier keys
  3. Exploit
    Developer or CI runs codegen-ui-react
  4. Execution
    Injected code emitted into generated React source
  5. Persist
    Build/SSR/browser executes payload
  6. Impact
    Arbitrary code execution across dev, CI/CD, and end-user environments

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated Amplify Studio user (PR:L) who can supply crafted component-definition or theme-schema values - specifically theme keys that are non-identifiers, which prior to 2.20.6 were emitted unescaped into generated React source. A victim action is also required (UI:R): the crafted schema must be processed by @aws-amplify/codegen-ui-react and the resulting code must be built, run, or server-rendered, at which point it executes in browsers, developer machines, CI/CD, or SSR. Limiting factors: the attacker needs legitimate write/import access to the Studio project's schemas (not unauthenticated), and no code runs until a generation-plus-build/render step occurs, so merely viewing the design is insufficient. This is a bypass of the incomplete CVE-2025-4318 validation, so environments patched only for that earlier CVE remain exposed.

Impact

The CVSS 3.1 base score is 9.0 (vector AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H): network-reachable, low complexity, but requiring low-privilege authentication (PR:L, an Amplify Studio user able to define components/themes) and user interaction (UI:R, someone must generate/build/render the crafted schema). The scope-changed flag (S:C) with full C/I/A impact reflects that code crosses a trust boundary - a schema author's input executes in a victim developer's or end-user's environment. Real-world risk is tempered by the authentication and interaction requirements: an attacker needs legitimate write access to the Studio project (or the ability to get a crafted schema imported), and a build/render must occur, so this favors insider or supply-chain-style abuse over opportunistic mass exploitation. No EPSS score, KEV listing, SSVC decision, or public POC was provided, so exploitation probability cannot be quantified from the input; the absence of KEV/POC suggests no confirmed in-the-wild activity, but the high impact and the fact that it is an incomplete-fix bypass of an earlier CVE warrant prompt patching. One tension worth flagging: the description emphasizes multi-environment code execution, but exploitation still hinges on privileged schema authorship - this is a high-impact, moderate-accessibility issue rather than an unauthenticated internet-facing RCE.

Exploit ScenarioDerived

An attacker with a low-privileged Amplify Studio account (or who can get a crafted schema imported into a shared project) defines a component or theme containing malicious theme keys or values engineered to break out of the generated literal context. When a developer or CI/CD pipeline runs the React code generator and then builds or server-renders the output, the injected code executes on the developer's machine, in the build environment, or in end-user browsers. No public POC was provided, but the v2.20.6 fix commit points at the exact non-identifier-theme-key vector.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 30, 2026

Code injection in Amazon's @aws-amplify/codegen-ui-react before 2.20.6 lets a remote authenticated Amplify Studio user embed attacker-controlled code into generated React components by supplying crafted component or theme schema values (CWE-94). The malicious code executes wherever the generated artifacts run - end-user browsers, developer machines, CI/CD pipelines, and server-side rendering contexts - giving broad code-execution reach. This is a bypass of the input validation added for CVE-2025-4318, which proved insufficient in coverage and effectiveness; no public exploit has been identified at time of analysis, though a vendor patch (v2.20.6) is available.

RemediationAI

Upgrade to @aws-amplify/codegen-ui-react version 2.20.6, the vendor-released patch that emits non-identifier theme keys as string literals to prevent injection (release: https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.6; advisory: https://aws.amazon.com/security/security-bulletins/2026-066-aws/ and https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-74xx-rjgf-m69j). Because the prior CVE-2025-4318 fix was incomplete, do not rely on any pre-2.20.6 build. Until the upgrade is deployed, restrict who can author or import Studio component and theme schemas to trusted developers, review generated code diffs before building or deploying (treat unexpected identifiers or executable-looking theme keys as suspect), and avoid running codegen or builds on untrusted schema input in privileged CI/CD or SSR contexts; the trade-off is added review friction and slower design-to-code turnaround, but it directly limits the code-execution path pending patching.

Affected VersionsENISA

Amplify Codegen UI 0 <2.20.6

Affected Packages

euvd amplify_codegen_ui fix: 2.20.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is @aws-amplify/codegen-ui-react, the React code generator that turns Amplify Studio visual designs (component definitions and theme schemas) into TypeScript/JSX source code. The root cause class is CWE-94 (Improper Control of Generation of Code), meaning untrusted schema field values are placed into emitted source without adequate sanitization or escaping, so a value can break out of its intended literal context and become executable code in the generated file. The v2.20.6 fix specifically emits non-identifier theme keys as string literals (commit 062c3a5, PR #1202), indicating that theme keys/values previously written as raw identifiers or object keys could be crafted to inject code. Because the generator output is consumed downstream - bundled into browser apps, run during builds, and executed under SSR - the injected code inherits the privileges of each of those execution environments. CPE cpe:2.3:a:aws:amplify_codegen_ui:*:*:*:*:*:*:*:* covers the affected package.

Know when AWS 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 6.4 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
vuln.today AI 9.0 CRITICAL

Requires an authenticated Studio schema author (PR:L) and a victim build/render step (UI:R); injected code crosses into other execution environments (S:C) with full code-execution impact.

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

Primary rating from Vendor (AMZN).

CVSS VectorVendor: AMZN

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

Lifecycle Timeline

3
Severity Changed
Jul 30, 2026 - 19:22 NVD
CRITICAL MEDIUM
CVSS changed
Jul 30, 2026 - 19:22 NVD
9.0 (CRITICAL) 6.4 (MEDIUM)
CVE Published
Jul 30, 2026 - 18:13 cve.org
CRITICAL 9.0

DescriptionCVE.org

Improper control of code generation in Amazon @aws-amplify/codegen-ui-react before 2.20.6 might allow a remote authenticated user to execute arbitrary code in end-user browsers, developer machines, CI/CD environments, and server-side rendering contexts via crafted Studio component or theme schema values due to insufficient coverage and effectiveness of the input validation introduced for CVE-2025-4318.

To remediate this issue, users should upgrade to version 2.20.6

Executive ViewAI

Why It Matters

Amazon's @aws-amplify/codegen-ui-react before version 2.20.6 contains a critical code injection vulnerability allowing authenticated Amplify Studio users to inject malicious code that executes across end-user browsers, developer machines, CI/CD pipelines, and server-side rendering environments. This creates significant supply chain and application integrity risk for organizations using this library to generate React components.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Medium
AWS Amplify Studio codegen tool, common within Amplify ecosystem but not universal
Social Media
3
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in AWS

View all
CVE-2026-103956 CRITICAL POC
10.0 Oct 02

Loom for AWS deployments running a version before 1.6.1 with no identity provider configured expose an unauthenticated s

CVE-2026-27702 CRITICAL POC
9.9 Feb 25

Unauthorized data access in Budibase low-code platform before 3.30.4 allows unauthenticated users to manipulate internal

CVE-2025-64709 CRITICAL POC
9.9 Nov 13

Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar

CVE-2020-37153 CRITICAL POC
9.8 Feb 11

Multiple vulnerabilities in ASTPP 4.0.1 including XSS and command injection in SIP device configuration and plugin manag

CVE-2026-54378 CRITICAL POC
9.3 Nov 04

Broken access control in the VitaFit cloud API before the 2026-10-30 fix lets any authenticated account holder call POST

CVE-2026-87911 CRITICAL POC
9.0 Sep 09

Remote code execution in Amazon awslabs postgres-mcp-server before 1.1.7 lets remote actors run arbitrary OS commands on

CVE-2026-11393 HIGH POC
8.8 Jun 08

Remote code execution in AWS AgentCore CLI before v0.14.2 allows authenticated attackers to inject Python code via craft

CVE-2026-18140 HIGH POC
8.7 Jul 30

Denial of service in the aws-smithy-json Rust runtime crate (versions before 0.62.7) lets remote unauthenticated attacke

CVE-2026-16756 HIGH POC
8.7 Jul 23

Denial of service in Amazon's aws-smithy-http-server Rust crate (versions prior to 0.66.5) lets remote unauthenticated a

CVE-2026-16796 HIGH POC
8.4 Jul 23

Argument injection in the AWS Bedrock AgentCore Python SDK before 1.18.1 lets a remote authenticated user run arbitrary

CVE-2026-9133 HIGH POC
8.3 May 20

Arbitrary file read in amazon-mq rabbitmq-aws before 0.2.1 allows authenticated remote users to read any file accessible

CVE-2026-13763 HIGH POC
7.9 Jun 29

WAF managed-rule body inspection on AWS Application Load Balancer (ALB) can be bypassed by remote actors who fragment an

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