{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.20.6"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "39187999ce601eb8aaa86c1afdc704adc708c6eb"
            }
          ],
          "repo": "https://github.com/aws-amplify/amplify-codegen-ui",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-74xx-rjgf-m69j"
  ],
  "database_specific": {
    "cna_assigner": "AMZN",
    "cwe_ids": [
      "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18245.json"
  },
  "details": "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.\n\n\n\nTo remediate this issue, users should upgrade to version 2.20.6",
  "id": "CVE-2026-18245",
  "modified": "2026-08-01T03:32:48.151453850Z",
  "published": "2026-07-30T18:13:07.047Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://aws.amazon.com/security/security-bulletins/2026-066-aws/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/18xxx/CVE-2026-18245.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/aws-amplify/amplify-codegen-ui/security/advisories/GHSA-74xx-rjgf-m69j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-18245"
    },
    {
      "type": "FIX",
      "url": "https://github.com/aws-amplify/amplify-codegen-ui/releases/tag/v2.20.6"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Incomplete fix for CVE-2025-4318 code injection in Amazon @aws-amplify/codegen-ui-react"
}