Skip to main content
CVE-2026-5078VulnerabilityPublished Updated

node-morgan · 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

Affects node-morganSource GCVE Database

0
Compare

Not known to be exploited · CVSS 5.3 Medium.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10node-morganpkg:deb/ubuntu/node-morgan?arch=source&distro=stonkingOther threatsAffected
  • =1.10.1+~1.9.10-1
Fixed in–
Ubuntu 26.04 LTSnode-morganpkg:deb/ubuntu/node-morgan?arch=source&distro=resoluteOther threatsAffected
  • =1.10.0+~1.9.3-1
  • =1.10.1+~1.9.10-1
Fixed in–
Ubuntu 25.10node-morganpkg:deb/ubuntu/node-morgan?arch=source&distro=questingOther threatsAffected
  • =1.10.0+~1.9.3-1
Fixed in–
Ubuntu 24.04 LTSnode-morganpkg:deb/ubuntu/node-morgan?arch=source&distro=nobleOther threatsAffected
  • =1.10.0+~1.9.3-1
Fixed in–
Ubuntu 22.04 LTSnode-morganpkg:deb/ubuntu/node-morgan?arch=source&distro=jammyOther threatsAffected
  • =1.10.0-2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…