High severityNVD Advisory· Published Nov 19, 2025· Updated Nov 19, 2025
Astro is vulnerable to Reflected XSS via the server islands feature
CVE-2025-64764
Description
Astro is a web framework. Prior to version 5.15.8, a reflected XSS vulnerability is present when the server islands feature is used in the targeted application, regardless of what was intended by the component template(s). This issue has been patched in version 5.15.8.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
astronpm | < 5.15.8 | 5.15.8 |
Affected products
1Patches
1790d9425f39bMerge commit from fork
1 file changed · +3 −2
packages/astro/src/template/4xx.ts+3 −2 modified@@ -134,10 +134,11 @@ export function trailingSlashMismatchTemplate( pathname: string, trailingSlash: 'always' | 'never' | 'ignore', ) { - const corrected = + const corrected = escape( trailingSlash === 'always' ? appendForwardSlash(pathname) - : removeTrailingForwardSlash(pathname); + : removeTrailingForwardSlash(pathname), + ); return template({ pathname, statusCode: 404,
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
4- github.com/advisories/GHSA-wrwg-2hg8-v723ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-64764ghsaADVISORY
- github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91ghsax_refsource_MISCWEB
- github.com/withastro/astro/security/advisories/GHSA-wrwg-2hg8-v723ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.