CVE-2026-59727
Astro: Cross-site scripting via unescaped transition:* directive values on hydrated islands
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.393% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 2.1 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Assessment source · checked 2026-11-19T12:02:02.434Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:02:02.434Z | CVE Program |
| epss | verified | 2026-11-19T16:04:53.106Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:51:58.264Z | OSV |
| affected | verified | 2026-11-19T12:02:02.434Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:02:02.434Z | CVE Program |
Affected versions and configuration
withastro astro; default status: unknown: >= 3.10.0, < 7.0.4 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
OSV · osv · full conditions
{
"id": "GHSA-7pw4-f3q4-r2p2",
"aliases": [
"CVE-2026-59727"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.10.0"
},
{
"fixed": "7.0.4"
}
]
}
],
"package": {
"name": "astro",
"purl": "pkg:npm/astro",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-7pw4-f3q4-r2p2/GHSA-7pw4-f3q4-r2p2.json"
}
}
],
"severity": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-59727",
"type": "ADVISORY"
},
{
"url": "https://github.com/withastro/astro/pull/17212",
"type": "WEB"
},
{
"url": "https://github.com/withastro/astro/commit/7ba0bb1dc7516e88caff9abd7767322af44b0294",
"type": "WEB"
},
{
"url": "https://github.com/withastro/astro",
"type": "PACKAGE"
},
{
"url": "https://github.com/withastro/astro/releases/tag/[email protected]",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-116",
"CWE-79",
"CWE-83"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-07-27T20:16:40Z",
"github_reviewed_at": "2026-07-20T23:21:02Z"
}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "withastro",
"product": "astro",
"versions": [
{
"status": "affected",
"version": ">= 3.10.0, < 7.0.4"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-59727",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-28T15:08:17.872331Z"
}
}
}
],
"references": [
{
"url": "https://github.com/withastro/astro/security/advisories/GHSA-7pw4-f3q4-r2p2",
"tags": [
"exploit"
]
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-07-28T15:20:18.915Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | astro | Not a distribution channel | 7.0.4 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:02:02.434ZArchived source JSON
Source publication: 2026-07-27T19:42:32.222Z
Source modification: 2026-07-28T15:20:18.915ZDocument fingerprint
3215c0f738903c6deb54b31d1003dd453f2ca6746edbaed2ff0649585ee6e0ee - OSVConsulted: 2026-11-19T12:51:58.264ZArchived source JSON
Source publication: 2026-07-20T23:21:02.000Z
Source modification: 2026-08-12T20:45:07.788ZDocument fingerprint
998ec8a32f8114f4f6dc251a8df217dbe4184aa39326838d5043215d1ada1359 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:53.106ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
ba064d37fdcff65c8d2137a8a84b754e2a9d47591973a041101c160af234b088
Official status history
- UNKNOWN → PUBLISHED · · evidence