CVE-2025-62595
JavaScript 脆弱性の分析と軽減

概要

A bypass vulnerability (CVE-2025-62595) was discovered in the Koa.js framework affecting versions 2.16.2 to before 2.16.3 and 3.0.1 to before 3.0.3. The vulnerability impacts the back redirect functionality, where attackers can manipulate the Referer header to force users' browsers to navigate to external, potentially malicious websites. This occurs because the implementation incorrectly treats some specially crafted URLs as safe relative paths (GitHub Advisory).

技術的な詳細

The vulnerability exists because the patched code attempts to treat values that start with '/' as safe relative paths and only performs origin checks for absolute URLs. However, protocol-relative URLs (beginning with //host) also start with '/' and therefore match the startsWith('/') check. This allows a protocol-relative referrer such as //evil.com with trailing double-slash to be treated as a safe relative path, while browsers interpret Location: //evil.com as a redirect to https://evil.com or http://evil.com based on context (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 4.3 (Moderate) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N (NVD).

影響

If exploited, this vulnerability could allow attackers to perform phishing, social engineering, or other redirect-based attacks on users of affected applications. An attacker who can cause a victim to visit a specially crafted link or inject a request with a controlled Referer can redirect the victim to an attacker-controlled domain (GitHub Advisory).

軽減策と回避策

The vulnerability has been patched in versions 2.16.3 and 3.0.3. The fix involves not treating //host as a safe relative path and explicitly excluding protocol-relative values from any relative-path branch. It's recommended to normalize the Referer by resolving it with a base (e.g., new URL(rawRef, ctx.href)), then compare resolved.origin (scheme+host+port) to ctx.origin before allowing the redirect (GitHub Advisory).

関連情報


ソースこのレポートは AI を使用して生成されました

関連 JavaScript 脆弱 性:

CVE 識別子

重大度

スコア

テクノロジー

コンポーネント名

CISA KEV エクスプロイト

修正あり

公開日

GHSA-vffh-c9pq-4crhMEDIUM6.5
  • JavaScriptJavaScript
  • uptime-kuma
いいえいいえOct 20, 2025
CVE-2025-62522MEDIUM6
  • JavaScriptJavaScript
  • vite
いいえはいOct 20, 2025
CVE-2025-62595MEDIUM4.3
  • JavaScriptJavaScript
  • koa
いいえはいOct 21, 2025
GHSA-xvp7-8vm8-xfxxMEDIUM4.2
  • JavaScriptJavaScript
  • @actual-app/sync-server
いいえいいえOct 20, 2025
CVE-2025-62505LOW3
  • JavaScriptJavaScript
  • @lobehub/chat
いいえはいOct 17, 2025

無料の脆弱性評価

クラウドセキュリティポスチャーのベンチマーク

9つのセキュリティドメインにわたるクラウドセキュリティプラクティスを評価して、リスクレベルをベンチマークし、防御のギャップを特定します。

評価を依頼する

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者