CVE-2026-18245 Incomplete fix for CVE-2025-4318 code injection in Amazon @aws-amplify/codegen-ui-react
Remote authenticated users can execute arbitrary code in various environments via crafted schema values due to incomplete input validation in the code generation library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-18245?
CVE-2026-18245 is a medium-severity code injection vulnerability in AWS Amplify Codegen UI, published on 30 Jul 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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
Weakness: CWE-94
Which versions are affected by CVE-2026-18245?
It affects 1 product.
Products include Amazon Amplify Codegen Ui.
How do I fix CVE-2026-18245?
No fix has been published for CVE-2026-18245 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-18245 being exploited?
There is no known exploitation of CVE-2026-18245 in the wild and no public exploit code.
Sources
Also known as GHSA-74xx-rjgf-m69j.