CVEMETERBack to radar
OFFICIAL RECORD · JavaScript packages

CVE-2026-59727

PUBLISHEDOfficial status check: verifiedCVSS 4.0: 2.1 · low

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_M
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
Assessment source · checked 2026-11-19T12:02:02.434Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T17:59:58.648ZCISA KEV
cvssverified2026-11-19T12:02:02.434ZCVE Program
epssverified2026-11-19T16:04:53.106ZFIRST EPSS
patchesverified2026-11-19T12:51:58.264ZOSV
affectedverified2026-11-19T12:02:02.434ZCVE Program
lifecycleverified2026-11-19T12:02:02.434ZCVE 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 JSON
CVE 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 JSON

Correction 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 typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundarynpm / packageastroNot a distribution channel7.0.4Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history