{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-59727","id":"CVE-2026-59727","title":"Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands","description":"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 directi","descriptionLong":"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.","published":"2026-07-27T19:42:32.222Z","updated":"2026-10-28T02:30:32.482535937Z","reserved":"2026-07-06T15:34:16.917Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":2.1,"vector":"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":2.1,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"low","source":"GitHub"}],"rating":"low","products":["withastro astro"],"affectedProducts":[{"vendor":"withastro","product":"astro","defaultStatus":null,"versions":[{"version":">= 3.10.0, < 7.0.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"astro","purl":"pkg:npm/astro","ranges":[">=3.10.0 <7.0.4"],"fixed":["7.0.4"],"advisory":"GHSA-7pw4-f3q4-r2p2"}],"cwes":["CWE-79","CWE-83","CWE-116"],"aliases":["GHSA-7pw4-f3q4-r2p2"],"references":[{"url":"https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/withastro/astro/pull/17212","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/withastro/astro/commit/7ba0bb1dc7516e88caff9abd7767322af44b0294","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/withastro/astro/releases/tag/astro@7.0.4","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59727.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59727","tags":["advisory"]},{"url":"https://github.com/withastro/astro","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00393,"epssPercentile":0.34151,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-59727","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59727","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-59727","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7pw4-f3q4-r2p2","ok":true,"note":"GHSA-7pw4-f3q4-r2p2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-59727","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}