{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "7.4.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "e023abac912d7cb6af2b9fb5107ef5dabc667096"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "astro@7.4.5",
                "range": [
                  {
                    "fixed": "d354ffba8df77ab9d89480bb5d0ca6efe249573e"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d354ffba8df77ab9d89480bb5d0ca6efe249573e"
            },
            {
              "fixed": "e023abac912d7cb6af2b9fb5107ef5dabc667096"
            }
          ],
          "repo": "https://github.com/withastro/astro",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-mh32-jxcr-mh9f"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-184",
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126361.json"
  },
  "details": "Astro is a web framework for content-driven websites. Prior to 7.4.5, Astro rendered a string used as a dynamic element name as raw HTML after applying an incomplete character filter. A / in the string could make an HTML parser treat the remainder as attributes, allowing untrusted element-name input to inject event-handler markup. The .astro dynamic-tag renderer, JSX renderer, and MDX renderer were affected, and exploitation required an application to use request-controlled or stored untrusted data as all or part of an element name. This issue is fixed in version 7.4.5.",
  "id": "CVE-2026-126361",
  "modified": "2026-11-15T02:30:29.544737491Z",
  "published": "2026-11-12T22:26:35.206Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/withastro/astro/releases/tag/astro@7.4.5"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/126xxx/CVE-2026-126361.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/withastro/astro/security/advisories/GHSA-mh32-jxcr-mh9f"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126361"
    },
    {
      "type": "FIX",
      "url": "https://github.com/withastro/astro/commit/e023abac912d7cb6af2b9fb5107ef5dabc667096"
    },
    {
      "type": "FIX",
      "url": "https://github.com/withastro/astro/pull/18520"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Astro: XSS via attribute injection in dynamic tag names"
}