Vulnerability
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.
19 advisories report this vulnerability, across 6 ecosystems.
Advisories
- CGA-2gf8-3vmc-6g5q
- CGA-2xq7-664v-h39c
- CGA-4w35-j7q3-7chp
- CGA-5794-5g5x-28q9
- CGA-5crg-pp8q-3jxc
- CGA-6cgm-qrq7-74rm
- CGA-848p-j8fg-p795
- CGA-9hph-7663-p6hm
- CGA-9r8v-wqvv-p9mw
- CGA-h2fc-mmx7-7mc5
- CGA-j7qh-x86r-g34c
- CGA-mv6q-2x9w-jp4h
- CGA-p33v-q6cm-m98r
- CGA-w4vg-4c8x-24p3
-
DEBIAN-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…
-
GHSA-4vj7-5mj6-jm8m
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
-
RHSA-2026:38236
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHVEX-CVE-2026-5078
morgan: morgan: Log forgery due to unneutralized control characters
-
UBUNTU-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…