NVD Vulnerability Detail
Search Exploit, PoC
CVE-2026-5078
Summary

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.

Publication Date June 3, 2026, 5:16 p.m.
Registration Date June 4, 2026, 4:16 a.m.
Last Update June 5, 2026, 1:40 a.m.
CVSS3.1 : MEDIUM
スコア 5.3
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
morgan projectのmorganにおける不適切なログ出力の無効化に関する脆弱性
Title morgan projectのmorganにおける不適切なログ出力の無効化に関する脆弱性
Summary

影響: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 を含まないカスタムフォーマット文字列を使用してください。

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

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

Publication Date June 3, 2026, midnight
Registration Date June 8, 2026, 11:45 a.m.
Last Update June 8, 2026, 11:45 a.m.
Affected System
morgan project
morgan 1.2.0 以上 1.11.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年06月08日]
  掲載
June 8, 2026, 11:45 a.m.