🔍 CVE-2025-61925

6.5
CVSS Score
MEDIUM
2025-10-10
2026-10-08 13:10
✅ 완료

🇰🇷 한글 설명

Astro 웹 프레임워크 5.14.2 미만 버전에서 X-Forwarded-Host 헤더의 값을 검증 없이 Astro.url에 반영하는 취약점이 발견되었습니다. 공격자가 조작된 헤더를 통해 canonical 링크를 변조하거나 로그인/등록 폼의 URL을 악성 사이트로 유도할 수 있으며, 캐싱 프록시 환경에서는 다른 사용자에게도 영향을 미칠 수 있습니다.

💡 쉬운 설명

웹사이트가 사용자가 보낸 가짜 주소 정보를 그대로 믿고 사용하는 보안 허점입니다. 이를 통해 공격자는 사용자를 가짜 로그인 페이지로 유도하거나 잘못된 정보를 보여줄 수 있습니다.

🇺🇸 원문 (English)

Astro is a web framework. Prior to version 5.14.2, Astro reflects the value in `X-Forwarded-Host` in output when using `Astro.url` without any validation. It is common for web servers such as nginx to route requests via the `Host` header, and forward on other request headers. As such as malicious request can be sent with both a `Host` header and an `X-Forwarded-Host` header where the values do not match and the `X-Forwarded-Host` header is malicious. Astro will then return the malicious value. This could result in any usages of the `Astro.url` value in code being manipulated by a request. For example if a user follows guidance and uses `Astro.url` for a canonical link the canonical link can be manipulated to another site. It is theoretically possible that the value could also be used as a login/registration or other form URL as well, resulting in potential redirecting of login credentials to a malicious party. As this is a per-request attack vector the surface area would only be to the malicious user until one considers that having a caching proxy is a common setup, in which case any page which is cached could persist the malicious value for subsequent users. Many other frameworks have an allowlist of domains to validate against, or do not have a case where the headers are reflected to avoid such issues. This could affect anyone using Astro in an on-demand/dynamic rendering mode behind a caching proxy. Version 5.14.2 contains a fix for the issue.

📍 영향받는 시스템

Astro framework versions prior to 5.14.2

⚔️ 공격 벡터

HTTP 요청 헤더의 X-Forwarded-Host 값을 조작하여 Astro.url이 반환하는 값을 변조하는 방식

🛡️ 대응 방법

Astro 프레임워크를 최신 버전인 5.14.2 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 5.14.2 미만이면 취약한 상태이며, 5.14.2 이상이면 안전합니다.

Shell / Script
npm list astro | grep -E 'astro@([0-4]\.|5\.(0|1|2|3|4|5|6|7|8|9|10|11|12|13)\.)'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

💻 영향받는 소프트웨어

Nginx