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
Published: 2026-07-30
Score: 6.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in Amazon @aws-amplify/codegen-ui-react arises from insufficient input validation of Studio component or theme schema values. This code injection flaw allows a remote authenticated user to inject and execute arbitrary JavaScript in end‑user browsers, developer workstations, CI/CD pipelines, and server‑side rendering contexts, effectively granting the attacker control over the execution environment. The weakness is identified as CWE‑94, confirming a code injection vulnerability.

Affected Systems

Affected systems include AWS Amplify Codegen UI React, specifically any installation of the library prior to version 2.20.6. Versions 2.20.6 and later incorporate a fix that expands input validation for Studio schemas.

Risk and Exploitability

The CVSS score of 6.4 indicates a moderate severity. The EPSS score is <1% (0.00522), indicating a very low but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The intended attack requires a remote authenticated user to supply a maliciously crafted schema—an action that is feasible for users with legitimate editing rights or compromised credentials. While no confirmed exploitation reports are available, the combination of automated contexts (CI/CD, SSR) and a code injection vector warrants proactive remediation.

Generated by OpenCVE AI on August 4, 2026 at 11:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Amplify Codegen UI React version 2.20.6 or later to apply the fixed input validation logic.
  • Review and sanitize all existing Studio component and theme schema values to ensure they contain no JavaScript payloads or unexpected code fragments.
  • Limit or audit the permissions of users who can modify schema values, and monitor for unauthorized changes in CI/CD or server‑side environments.

Generated by OpenCVE AI on August 4, 2026 at 11:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 30 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 30 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
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
Title Incomplete fix for CVE-2025-4318 code injection in Amazon @aws-amplify/codegen-ui-react
First Time appeared Aws
Aws amplify Codegen Ui
Weaknesses CWE-94
CPEs cpe:2.3:a:aws:amplify_codegen_ui:*:*:*:*:*:*:*:*
Vendors & Products Aws
Aws amplify Codegen Ui
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 6.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H'}


Subscriptions

Amazon Amplify Codegen Ui
Aws Amplify Codegen Ui
cve-icon MITRE

Status: PUBLISHED

Assigner: AMZN

Published:

Updated: 2026-07-30T19:15:12.776Z

Reserved: 2026-07-29T14:45:04.539Z

Link: CVE-2026-18245

cve-icon Vulnrichment

Updated: 2026-07-30T19:15:05.425Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-30T19:17:26.610

Modified: 2026-08-10T20:02:09.243

Link: CVE-2026-18245

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T11:45:03Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')