Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. astro
  4. ›
  5. CVE-2025-64745

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

November 13, 2025 (updated November 27, 2025)

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.

References

  • github.com/advisories/GHSA-w2vj-39qv-7vh7
  • github.com/withastro/astro
  • github.com/withastro/astro/blob/5bc37fd5cade62f753aef66efdf40f982379029a/packages/astro/src/template/4xx.ts
  • github.com/withastro/astro/commit/790d9425f39bbbb462f1c27615781cd965009f91
  • github.com/withastro/astro/pull/12994
  • github.com/withastro/astro/security/advisories/GHSA-w2vj-39qv-7vh7
  • nvd.nist.gov/vuln/detail/CVE-2025-64745

Code Behaviors & Features

Detect and mitigate CVE-2025-64745 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.2.0 before 5.15.6

Fixed versions

  • 5.15.6

Solution

Upgrade to version 5.15.6 or above.

Impact 2.7 LOW

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/astro/CVE-2025-64745.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 05 Dec 2025 12:19:41 +0000.