# CVE-2025-64745: Astro development server error page vulnerable to reflected Cross-site Scripting

- Severity: Low 2.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-13T20:26:13.261Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-w2vj-39qv-7vh7
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- withastro astro: >= 5.2.0, < 5.15.6
- astro (npm): from 5.2.0 before 5.15.6
- astro astro: from 5.2.0 before 5.15.6

## Every score

- GitHub_M: CVSS:3.1 2.7 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.7 Low `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/withastro/astro/security/advisories/GHSA-w2vj-39qv-7vh7> (exploit, third-party-advisory, web)
- <https://github.com/withastro/astro/pull/12994> (patch, web)
- <https://github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91> (patch, web)
- <https://github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts#L133-L149> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64745> (advisory)
- <https://github.com/withastro/astro> (package)

## Sources

- CVE List: [CVE-2025-64745](https://www.cve.org/CVERecord?id=CVE-2025-64745), CVE Terms of Use, modified 2025-11-13
- GitHub Advisory Database: [GHSA-w2vj-39qv-7vh7](https://github.com/advisories/GHSA-w2vj-39qv-7vh7), CC-BY-4.0, modified 2025-11-27
- NVD: [CVE-2025-64745](https://nvd.nist.gov/vuln/detail/CVE-2025-64745), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-64745 · Whole record: https://cve.day/CVE-2025-64745.json · Rebuilt by cve.day 2026-11-25T22:59:07.656Z
