CVE-2026-18245: CWE-94: Improper Control of Generation of Code ('Code Injection') in AWS Amplify Codegen UI
CVE-2026-18245 is a critical code injection vulnerability in AWS Amplify Codegen UI versions before 2.20.6. It allows a remote authenticated user to execute arbitrary code in various contexts including end-user browsers, developer machines, CI/CD pipelines, and server-side rendering environments by exploiting insufficient input validation of Studio component or theme schema values. The issue arises from improper control of code generation despite previous mitigations for a related vulnerability (CVE-2025-4318).
AI Analysis
Technical Summary
This vulnerability (CVE-2026-18245) in Amazon @aws-amplify/codegen-ui-react prior to version 2.20.6 involves improper control of code generation (CWE-94), enabling remote authenticated users to execute arbitrary code across multiple environments. The root cause is insufficient input validation of crafted Studio component or theme schema values, which bypasses protections introduced for a previous vulnerability. The flaw affects client-side and server-side contexts, posing a high risk of code injection. AWS manages this as a cloud service and has released version 2.20.6 to remediate the issue.
Potential Impact
Successful exploitation allows remote authenticated users to execute arbitrary code in end-user browsers, developer machines, CI/CD environments, and server-side rendering contexts. This can lead to full compromise of affected environments, including confidentiality, integrity, and availability impacts. The CVSS v3.1 base score is 9.0 (critical), reflecting network attack vector, low attack complexity, required privileges, user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
AWS manages remediation for this cloud-hosted service and has released version 2.20.6 of @aws-amplify/codegen-ui-react to address this vulnerability. Users should upgrade to version 2.20.6 or later to remediate the issue. Check the AWS security bulletin at https://aws.amazon.com/security/security-bulletins/2026-066-aws/ for the latest guidance and confirmation of patch status.
CVE-2026-18245: CWE-94: Improper Control of Generation of Code ('Code Injection') in AWS Amplify Codegen UI
Description
CVE-2026-18245 is a critical code injection vulnerability in AWS Amplify Codegen UI versions before 2.20.6. It allows a remote authenticated user to execute arbitrary code in various contexts including end-user browsers, developer machines, CI/CD pipelines, and server-side rendering environments by exploiting insufficient input validation of Studio component or theme schema values. The issue arises from improper control of code generation despite previous mitigations for a related vulnerability (CVE-2025-4318).
CVSS v3.1
Score 9.0critical
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-18245) in Amazon @aws-amplify/codegen-ui-react prior to version 2.20.6 involves improper control of code generation (CWE-94), enabling remote authenticated users to execute arbitrary code across multiple environments. The root cause is insufficient input validation of crafted Studio component or theme schema values, which bypasses protections introduced for a previous vulnerability. The flaw affects client-side and server-side contexts, posing a high risk of code injection. AWS manages this as a cloud service and has released version 2.20.6 to remediate the issue.
Potential Impact
Successful exploitation allows remote authenticated users to execute arbitrary code in end-user browsers, developer machines, CI/CD environments, and server-side rendering contexts. This can lead to full compromise of affected environments, including confidentiality, integrity, and availability impacts. The CVSS v3.1 base score is 9.0 (critical), reflecting network attack vector, low attack complexity, required privileges, user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
AWS manages remediation for this cloud-hosted service and has released version 2.20.6 of @aws-amplify/codegen-ui-react to address this vulnerability. Users should upgrade to version 2.20.6 or later to remediate the issue. Check the AWS security bulletin at https://aws.amazon.com/security/security-bulletins/2026-066-aws/ for the latest guidance and confirmation of patch status.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- AMZN
- Date Reserved
- 2026-07-29T14:45:04.539Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Is Cloud Service
- true
- Vendor Advisory Urls
- [{"url":"https://aws.amazon.com/security/security-bulletins/2026-066-aws/","vendor":"AWS"}]
Threat ID: 6a6b96989c2644c7f87cc30f
Added to database: 07/30/2026, 18:23:20 UTC
Last enriched: 07/30/2026, 18:37:24 UTC
Last updated: 07/30/2026, 18:59:32 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.