CVE-2025-64745
Astro development server error page vulnerable to reflected Cross-site Scripting
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
Description
Astro is a web framework. Starting in version 5.2.0 and prior to version 5.15.6, a Reflected Cross-Site Scripting (XSS) vulnerability exists in Astro's development server error pages when the `trailingSlash` configuration option is used. An attacker can inject arbitrary JavaScript code that executes in the victim's browser context by crafting a malicious URL. While this vulnerability only affects the development server and not production builds, it could be exploited to compromise developer environments through social engineering or malicious links. Version 5.15.6 fixes the issue.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Low2.7 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N |
| NVDNVD · Analyzed | 3.1 | Medium6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.26% · top 82% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 2.7.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
References (4)
- https://github.com/withastro/astro/security/advisories/GHSA-w2vj-39qv-7vh7 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/withastro/astro/pull/12994 (opens in a new tab)x_refsource_MISC
- https://github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91 (opens in a new tab)x_refsource_MISC
- https://github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts#L133-L149 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w2vj-39qv-7vh7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-64745)Record last updated .