← Back
CVE-2025-4318
Vulnerability in Amazon @aws-amplify/codegen-ui-react (CVE-2025-4318)
Summary
vulnerability in Amazon @aws-amplify/codegen-ui-react (CVE-2025-4318). Risk of unauthorized operations or information disclosure. Mitigation: upgrade to `2.20.3` or later.
AI summary snake-internal / snake-material-v2
A vulnerability tracked as **CVE-2025-4318** has been found in Amazon @aws-amplify/codegen-ui-react.
Risk of unauthorized operations or information disclosure. CVSS score: ?/10.
What to do: upgrade Amazon @aws-amplify/codegen-ui-react to **2.20.3** or later.
If unsure, ask your IT team or search "Amazon @aws-amplify/codegen-ui-react CVE-2025-4318" on the vendor's site.
CVE-2025-4318 (Amazon @aws-amplify/codegen-ui-react) — CWE-95 /
Patched: `2.20.3` — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
❓ What is the problem
**A vulnerability** (CWE-95) exists in Amazon @aws-amplify/codegen-ui-react.
📍 Affected scope
Amazon @aws-amplify/codegen-ui-react — .
🔥 Severity
Severity: ?. Risk of unauthorized operations or information disclosure
🔧 How to fix
Update to **2.20.3**.
🛡️ Workaround
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
🔍 Detection
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run `grep -r '@aws-amplify/codegen-ui-react' .` against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response Actions (7 steps)
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r '@aws-amplify/codegen-ui-react' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で `@aws-amplify/codegen-ui-react` を grep し、稼働しているサービス・バージョンを把握する。
-
6Apply patch patch
Upgrade @aws-amplify/codegen-ui-react to 2.20.3ステージング環境で 2.20.3 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
npm
@aws-amplify/codegen-ui-react
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.20.3"}]}]
References
- AWS https://aws.amazon.com/security/security-bulletins/rss/2026-066-aws/
- JVN JVNDB-2026-027827
- web ff89ba41-3aa1-4d27-914a-91399e9639e5
- web https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.3
- web https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-hf3j-86p7-mfw8
- web 134c704f-9b21-4f2e-91b3-4a467353bcc0
- web https://github.com/aws-amplify/amplify-codegen-ui/commit/ca98c38b7c3d69ae7c94d2f62b51e32e8165dae6
- web https://nvd.nist.gov/vuln/detail/CVE-2025-4318
- web https://aws.amazon.com/security/security-bulletins/AWS-2025-010
- web https://blog.securelayer7.net/cve-2025-4318-aws-amplify-rce
- web https://github.com/advisories/GHSA-hf3j-86p7-mfw8