# CVE-2025-4318: AWS Amplify Studio eval injection in amplify-codegen-ui

Source: https://junglewise.ai/threats/cve-2025-4318-aws-amplify-studio-eval-injection-in-amplify-codegen-ui  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-30. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-4318 · Severity: critical · CVSS 4 · Published 2026-07-30

Amazon's @aws-amplify/codegen-ui-react is a code generation tool used by developers to automatically generate React UI components. An incomplete security fix for a prior code injection vulnerability (CVE-2025-4318) means attackers could still inject and execute arbitrary code during the code generation process, potentially compromising applications built with this tool.

Technologies: [Amazon AWS](https://junglewise.ai/threats/technologies/aws). Vendors: [Amazon](https://junglewise.ai/threats/vendors/amazon), [AWS](https://junglewise.ai/threats/vendors/aws), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2025-4318 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-4318 being exploited in the wild.

**How severe is CVE-2025-4318?** Critical severity, with a CVSS score of 4, published 30 July 2026.

**Which products and versions are affected?** AWS Amplify-Codegen-Ui <= 2.20.2; @aws-amplify/codegen-ui-react (npm) <= 2.20.2, SEMVER:introduced=0,fixed=2.20.3.

**Is there a fix for CVE-2025-4318?** Yes. @aws-amplify/codegen-ui-react (npm): upgrade to 2.20.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2025-4318 attacked?** It is attacked over the network.

**Am I affected by CVE-2025-4318?** Check whether you run Amazon AWS, AWS Amplify-Codegen-Ui or @aws-amplify/codegen-ui-react (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @aws-amplify/codegen-ui-react (npm): upgrade to 2.20.3 or later

  ```sh
  npm install @aws-amplify/codegen-ui-react@2.20.3
  ```


## Technical details

The vulnerability is a code injection flaw in Amazon @aws-amplify/codegen-ui-react that was previously identified as CVE-2025-4318. The original patch was incomplete, leaving the code generation process still vulnerable to malicious input injection. An attacker who can control input to the code generation process (such as through manipulated design files or configuration) can inject arbitrary code that gets embedded into the generated React component code. This allows arbitrary code execution in the context of applications using the generated components. The fix status and available patches should be verified through AWS security bulletins.

## Affected products

- Amazon @aws-amplify/codegen-ui-react

## Identifiers

- CVE-2025-4318
- GHSA-hf3j-86p7-mfw8

## Timeline

- 2026-09-22: disclosed

## References

- [https://aws.amazon.com/security/security-bulletins/rss/2026-066-aws/](https://aws.amazon.com/security/security-bulletins/rss/2026-066-aws/)

## Related threats

- [An untrusted search path issue in Aurora PostgreSQL dialect detection in the AWS Advanced Go Wrapper from release 2026-04-06 (awssql/v2.0.0)](https://junglewise.ai/threats/cve-2026-126793-privilege-escalation-in-aurora-postgresql-dialect-detection-in)
- [AWS SDK for pandas EMR unverified bucket ownership](https://junglewise.ai/threats/cve-2026-127119-unverified-ownership-of-the-default-emr-cluster-log-location-in)
- [Amazon mcp-gateway-registry server-side request forgery in registration API](https://junglewise.ai/threats/cve-2026-125926-server-side-request-forgery-in-the-server-registration-and)
- [Amazon mcp-gateway-registry authorization bypass in management API](https://junglewise.ai/threats/cve-2026-100307-missing-authorization-on-the-external-management-api-in-mcp)
- [AWS Kiro CLI incorrect default permissions on session files](https://junglewise.ai/threats/cve-2026-124848-incorrect-default-permissions-on-session-transcripts-and-prompt)
