{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-59727",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-07-06T15:34:16.917Z",
        "datePublished": "2026-07-27T19:42:32.222Z",
        "dateUpdated": "2026-07-28T15:20:18.915Z"
    },
    "containers": {
        "cna": {
            "title": "Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-83",
                            "lang": "en",
                            "description": "CWE-83: Improper Neutralization of Script in Attributes in a Web Page",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-116",
                            "lang": "en",
                            "description": "CWE-116: Improper Encoding or Escaping of Output",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "PRESENT",
                        "privilegesRequired": "NONE",
                        "userInteraction": "ACTIVE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "LOW",
                        "subIntegrityImpact": "LOW",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 2.1,
                        "baseSeverity": "LOW",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2"
                },
                {
                    "name": "https://github.com/withastro/astro/pull/17212",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/withastro/astro/pull/17212"
                },
                {
                    "name": "https://github.com/withastro/astro/commit/7ba0bb1dc7516e88caff9abd7767322af44b0294",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/withastro/astro/commit/7ba0bb1dc7516e88caff9abd7767322af44b0294"
                },
                {
                    "name": "https://github.com/withastro/astro/releases/tag/astro@7.0.4",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/withastro/astro/releases/tag/astro@7.0.4"
                }
            ],
            "affected": [
                {
                    "vendor": "withastro",
                    "product": "astro",
                    "versions": [
                        {
                            "version": ">= 3.10.0, < 7.0.4",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-07-27T19:42:32.222Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Astro is a web framework for content-driven websites. In versions 3.10.0 through 7.0.3, when a transition:persist, transition:scope, or transition:persist-props directive is applied to a client-hydrated (client:*) component, Astro copied the directive value onto the rendered <astro-island> element without HTML-escaping it. If a developer reflects attacker-controlled input into one of these directives, an attacker can break out of the attribute and inject arbitrary HTML/JavaScript into the server-rendered output, resulting in reflected cross-site scripting (XSS). Exploitation requires the application developer to have written a non-idiomatic pattern — passing untrusted, request-derived input directly into a transition directive. Astro applications that do not route untrusted input into these directives are unaffected. This issue has been fixed in version 7.0.4."
                }
            ],
            "source": {
                "advisory": "GHSA-7pw4-f3q4-r2p2",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-07-28T15:08:17.872331Z",
                                "id": "CVE-2026-59727",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-07-28T15:20:18.915Z"
                }
            }
        ]
    }
}