CVE-2026-18245 Details
Description
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
A code injection vulnerability has been identified in the Amazon @aws-amplify/codegen-ui-react library, affecting versions prior to 2.20.6. This vulnerability allows remote authenticated users to execute arbitrary JavaScript code in various contexts, including end-user browsers, developer machines, CI/CD environments, and server-side rendering scenarios. The issue arises from improper control of code generation, which enables the execution of crafted Studio component or theme schema values. This vulnerability is a result of inadequate input validation, leaving room for exploitation during the component rendering and build process.
Users are advised to upgrade to @aws-amplify/codegen-ui-react version 2.20.6 or later. For those using forked or derivative code, ensure that it is patched to incorporate the latest fixes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://aws.amazon.com/security/security-bulletins/2026-066-aws/ | AMZN | Vendor Advisory |
| https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.6 | AMZN | Release Notes |
| https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-74xx-rjgf-m69j | AMZN | PatchVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | AMZN |
Affected Products
| Product | Versions |
|---|---|
| amazon amplify codegen ui | < 2.20.6 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 10, 2026 | Initial Analysis | [email protected] |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | New CVE Received | AMZN |