CVE-2026-5078: morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
Vulnerability summary
CVE-2026-5078 is a medium (CVSS 5.3) Improper Output Neutralization for Logs vulnerability in morgan_project morgan. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 26.4% of scored vulnerabilities.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 03-06-2026PublishedVulnerability first disclosed.
- 03-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · NpmEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
Decrease -0.08 pp
From 0.41% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard5 products
- azurite< 3.35.0-r3
- tileserver-gl< 5.6.0-r10
- tileserver-gl-fips< 5.6.0-r9
- wazuh-dashboard-security-plugin< 4.14.7-r14
- wazuh-dashboard-security-plugin-fips< 4.14.7-r14
Debian1 product
- node-morganAll versions (No fix recorded) | < 1.12.0+~1.9.10-1
Morgan1 product
- morgan≥ 1.2.0, ≤ 1.10.1
Morgan_project1 product
- morgan≥ 1.2.0, < 1.11.0
Npm1 product
- morgan≥ 1.2.0, < 1.11.0
Ubuntu1 product
- node-morganAll versions (No fix recorded)
Wolfi1 product
- tileserver-gl< 5.6.0-r10
7 vendors · 11 products
References
8 links- github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8mREPORTAdvisoryWEBMitigationVendor Advisory
- github.com/expressjs/morganPACKAGE