CVE-2025-64745
MEDIUM 6.1CVSS 3.1Astro development server error page is vulnerable to reflected Cross-site Scripting
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.
- Published
- 13 Nov 2025
- Last modified
- 18 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-w2vj-39qv-7vh7
- Sources
- NVDJSONOSV GHSA-w2vj-39qv-7vh7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 2.7 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 2.7 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | astro | astrocpe:2.3:a:astro:astro:*:*:*:*:*:node.js:*:* |
>= 5.2.0, < 5.15.6 | 5.15.6 |
| OSV | npm | astro | >= 5.2.0, < 5.15.6 | 5.15.6 |
References
- https://github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts#L133-L149 · Product, WEB
- https://github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91 · Patch, WEB
- https://github.com/withastro/astro/pull/12994 · Patch, WEB
- https://github.com/withastro/astro/security/advisories/GHSA-w2vj-39qv-7vh7 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-64745 · ADVISORY
- https://github.com/withastro/astro · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 13 Nov 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Nov 2025)