---
title: "CVE-2025-4318: AWS Amplify Studio UI Component Properties Has an Input Validation Issue"
url: https://erroneo.us/security/cve/CVE-2025-4318/
description: "CVE-2025-4318 (@aws-amplify/codegen-ui-react (npm)): The AWS Amplify Studio UI component property expressions in the aws-amplify/amplify-codegen-ui package…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-05-05
date_modified: 2026-07-30
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-4318"
kev: false
cvss: 9
epss: 0.00976
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-4318: AWS Amplify Studio UI Component Properties Has an Input Validation Issue

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.0% , percentile 62: FIRST’s model estimates a 1.0% chance of exploitation activity in the next 30 days, higher than 62% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes @aws-amplify/codegen-ui-react (npm) <= 2.20.2, fixed in 2.20.3 . Check your lockfile, including transitive dependencies.

## What it is

The AWS Amplify Studio UI component property expressions in the aws-amplify/amplify-codegen-ui package lack input validation. This could potentially allow an authenticated user who has access to create or modify components to run arbitrary JavaScript code during the component rendering and build process.

## Affected packages

- npm `@aws-amplify/codegen-ui-react` <= 2.20.2 → fixed: 2.20.3

## Affected products (CVE record)

- Amazon Amplify Studio: 0.1.0 < 2.20.3

## Severity

- AMZN CVSS 4.0: 9 `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- GitHub CVSS 4.0: 9.5 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.98% probability of exploitation activity in the next 30 days; percentile 62.

## Sources

- [aws.amazon.com](https://aws.amazon.com/security/security-bulletins/AWS-2025-010/)
- [github.com](https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.3)
- [github.com](https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-hf3j-86p7-mfw8)
- [GitHub Advisory GHSA-hf3j-86p7-mfw8](https://github.com/advisories/GHSA-hf3j-86p7-mfw8)
- [CVE.org record CVE-2025-4318](https://www.cve.org/CVERecord?id=CVE-2025-4318)
- [NVD entry CVE-2025-4318](https://nvd.nist.gov/vuln/detail/CVE-2025-4318)
- [blog.securelayer7.net](https://blog.securelayer7.net/cve-2025-4318-aws-amplify-rce/)
- [github.com](https://github.com/aws-amplify/amplify-codegen-ui/commit/ca98c38b7c3d69ae7c94d2f62b51e32e8165dae6)

---
Source page: https://erroneo.us/security/cve/CVE-2025-4318/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
