CVE-2026-18245

Incomplete fix for CVE-2025-4318 code injection in Amazon @aws-amplify/codegen-ui-react

Published Jul 30, 2026 CVSS 4.0 · 6.4 Medium EPSS < 1% KEV · Not listed
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

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
AMZN
Published
Updated
Jul 30, 2026, 7:15 PM
Reserved
Jul 29, 2026, 2:45 PM
Status
Analyzed
Published
Jul 30, 2026, 7:17 PM
Modified
Oct 23, 2026, 10:10 PM