CVEfocus › CVE database › CVE-2026-5078

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

CVSS 5.3 MediumEPSS 0.4% (higher than 27% of CVEs)Published 2026-06-03Updated 2026-06-03Assigner: openjs

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.

CWE-117

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
19Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-morganFix pendingUBUNTU-CVE-2026-5078
Ubuntu 26.04node-morganUnder investigationUBUNTU-CVE-2026-5078
Ubuntu 25.10node-morganWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-5078
Ubuntu 24.04node-morganUnder investigationUBUNTU-CVE-2026-5078
Ubuntu 22.04node-morganUnder investigationUBUNTU-CVE-2026-5078
Debian 14node-morganFixed1.12.0+~1.9.10-1DEBIAN-CVE-2026-5078
Debian 13node-morganFix pendingDEBIAN-CVE-2026-5078
Debian 12node-morganFix pendingDEBIAN-CVE-2026-5078
Red Hat Enterprise Linux 10linux-sgxFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-commonFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-libsFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-mpaFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-pccsFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-pccs-adminFix pending
Fix deferred
Red Hat Enterprise Linux 10sgx-pckid-toolFix pending
Fix deferred
Red Hat Enterprise Linux 10tdx-qgsFix pending
Fix deferred
Red Hat Enterprise Linux 9linux-sgxFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-commonFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-libsFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-mpaFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-pccsFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-pccs-adminFix pending
Fix deferred
Red Hat Enterprise Linux 9sgx-pckid-toolFix pending
Fix deferred
Red Hat Enterprise Linux 9tdx-qgsFix pending
Fix deferred
npm librarymorganFixed1.11.0GHSA-4vj7-5mj6-jm8m

What the vendor says

As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.