morgan projectのmorganにおける不適切なログ出力の無効化に関する脆弱性
タイトル morgan projectのmorganにおける不適切なログ出力の無効化に関する脆弱性
概要

影響:morgan ロギングミドルウェアの :remote-user トークンは、Authorization リクエストヘッダーから Basic 認証のユーザー名を抽出し、制御文字を無効化せずにログストリームに書き込みます。認証されていない攻撃者は、CR または LF バイトを含む細工された Authorization Basic ヘッダーを送信して偽のログ行を挿入でき、アクセスログの1リクエスト1行の構造が破壊され、下流のログ消費者に対するログ偽造が可能になります。組み込みの combined、common、default、および short フォーマットが影響を受け、:remote-user を参照するカスタムフォーマットも影響を受けます。影響を受けるバージョンは、morgan 1.2.0 から 1.10.1 までです。修正方法は、制御文字を :remote-user トークンの出力で無効化した morgan 1.11.0 にアップグレードすることです。回避策としては、:remote-user を含まないカスタムフォーマット文字列を使用してください。

想定される影響 ・当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
対策

ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年6月3日0:00
登録日 2026年6月8日11:45
最終更新日 2026年6月8日11:45
CVSS3.0 : 警告
スコア 5.3
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
影響を受けるシステム
morgan project
morgan 1.2.0 以上 1.11.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年06月08日]
  掲載
2026年6月8日11:45

NVD脆弱性情報
CVE-2026-5078
概要

Impact: The morgan logging middleware's :remote-user token extracts the Basic auth username from the Authorization request header and writes it to the log stream without neutralizing control characters. An unauthenticated attacker can send a crafted Authorization Basic header containing CR or LF bytes to inject forged log lines, breaking the one-request-per-line structure of access logs and enabling log forgery against downstream log consumers. The built-in combined, common, default, and short formats are affected, as well as any custom format that references :remote-user. Affected versions: morgan 1.2.0 through 1.10.1. Patches: upgrade to morgan 1.11.0, which neutralizes control characters in the :remote-user token output. Workarounds: use a custom format string that does not include :remote-user.

公表日 2026年6月3日17:16
登録日 2026年6月4日4:16
最終更新日 2026年6月5日1:40
関連情報、対策とツール
共通脆弱性一覧