CVE-2025-64745
published 2025-11-13CVE-2025-64745: 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…
PriorityP427medium6.1CVSS 3.1
AVNACLPRNUIRSCCLILAN
EPSS
0.21%
11.0th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| astro | astro | >= 5.2.0 < 5.15.6 | 5.15.6 |
| astro | astro | >= 5.2.0 < 5.15.6 | 5.15.6 |
| withastro | astro | — | — |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Astro development server error page is vulnerable to reflected Cross-site Scripting
osv·2025-11-13
CVE-2025-64745 [LOW] Astro development server error page is vulnerable to reflected Cross-site Scripting
Astro development server error page is vulnerable to reflected Cross-site Scripting
## Summary
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.
## Details
### Vulnerability Location
https://github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts#L133-L149
### Root Cause
The vulnerability was introduced in commit `
GHSA
Astro development server error page is vulnerable to reflected Cross-site Scripting
ghsa·2025-11-13
CVE-2025-64745 [LOW] CWE-79 Astro development server error page is vulnerable to reflected Cross-site Scripting
Astro development server error page is vulnerable to reflected Cross-site Scripting
## Summary
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.
## Details
### Vulnerability Location
https://github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts#L133-L149
### Root Cause
The vulnerability was introduced in commit `
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts#L133-L149https://github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91https://github.com/withastro/astro/pull/12994https://github.com/withastro/astro/security/advisories/GHSA-w2vj-39qv-7vh7
2025-11-13
Published