ADVISORIES

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
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-2xq7-664v-h39c
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-4w35-j7q3-7chp
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-5794-5g5x-28q9
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-5crg-pp8q-3jxc
    CVE-2026-5078 ChainguardWolfi Updated 5 November 2026
  • CGA-6cgm-qrq7-74rm
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-848p-j8fg-p795
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-9hph-7663-p6hm
    CVE-2026-5078 ChainguardWolfi Updated 5 November 2026
  • CGA-9r8v-wqvv-p9mw
    CVE-2026-5078 ChainguardWolfi Updated 5 November 2026
  • CGA-h2fc-mmx7-7mc5
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-j7qh-x86r-g34c
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-mv6q-2x9w-jp4h
    CVE-2026-5078 ChainguardWolfi Updated 5 November 2026
  • CGA-p33v-q6cm-m98r
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • CGA-w4vg-4c8x-24p3
    CVE-2026-5078 Chainguard Updated 5 November 2026
  • 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…

    CVE-2026-5078 Debian Updated 1 October 2026
  • GHSA-4vj7-5mj6-jm8m

    morgan vulnerable to Log Forging via unneutralized control characters in :remote-user

    Moderate CVE-2026-5078 npm Updated 10 September 2026
  • RHSA-2026:38236

    Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update

    CVE-2026-11525CVE-2026-12151CVE-2026-5078CVE-2026-53550 Red Hat Updated 24 November 2026
  • RHVEX-CVE-2026-5078

    morgan: morgan: Log forgery due to unneutralized control characters

    Moderate CVE-2026-5078 Red Hat Updated 5 November 2026
  • 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…

    CVE-2026-5078 Ubuntu Updated 17 October 2026

References