CVE-2026-5078
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
5.3
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
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.
- Record
CVE-2026-5078- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
EUVDEUVD-2026-34067
5.3
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.
- Record
EUVD-2026-34067- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-4vj7-5mj6-jm8m
5.3
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
Impact
Morgan's :remote-user token extracts the Basic auth username from the Authorization header and writes it to the log stream without neutralizing control characters. An attacker can send a crafted Authorization: Basic header containing CR/LF characters to inject forged log lines, corrupting the one-request-per-line structure of access logs.
The built-in combined, common, default, and short formats are affected, as well as any custom format that includes :remote-user.
Patches
Users should upgrade to version 1.11.0.
Workarounds
Use a custom format string that does not include :remote-user.
- Record
GHSA-4vj7-5mj6-jm8m- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
NVD
5.3
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.
- Record
CVE-2026-5078- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
OSV
5.3
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
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.
- Record
CVE-2026-5078- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-5078
5.3
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.
- Record
DEBIAN-CVE-2026-5078- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
Show 6 moreShow less
OSVGHSA-4vj7-5mj6-jm8m
5.3
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
Impact
Morgan's :remote-user token extracts the Basic auth username from the Authorization header and writes it to the log stream without neutralizing control characters. An attacker can send a crafted Authorization: Basic header containing CR/LF characters to inject forged log lines, corrupting the one-request-per-line structure of access logs.
The built-in combined, common, default, and short formats are affected, as well as any custom format that includes :remote-user.
Patches
Users should upgrade to version 1.11.0.
Workarounds
Use a custom format string that does not include :remote-user.
- Record
GHSA-4vj7-5mj6-jm8m- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-117
- Updated
- 2026-11-02
OSVRHSA-2026:38236
7.5
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
- Record
RHSA-2026:38236- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-5078
5.3
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.
- Record
UBUNTU-CVE-2026-5078- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVCLSA-2026-1783904625 No score
TuxCare security update for morgan (1 CVE)
TuxCare rebuilt morgan to address 1 CVE. Fixed in 1.5.3-tuxcare.2.
- Record
CLSA-2026-1783904625- Updated
- 2026-11-02
OSVCLSA-2026-1784596308 No score
TuxCare security update for morgan (1 CVE)
TuxCare rebuilt morgan to address 1 CVE. Fixed in 1.6.1-tuxcare.1.
- Record
CLSA-2026-1784596308- Updated
- 2026-11-02
OSVCLSA-2026-1792164155 No score
TuxCare security update for morgan (3 CVEs)
TuxCare rebuilt morgan to address 3 CVEs. Fixed in 1.10.1-tuxcare.1.
- Record
CLSA-2026-1792164155- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
morgannpm |
1.2.0 to 1.10.1 | 1.11.0 |
morganTuxCare:npm |
1.5.3-tuxcare.0 up to 1.5.3-tuxcare.2, plus listed versions 1.5.31.5.3-tuxcare.1 |
1.5.3-tuxcare.2 |
morganTuxCare:npm |
1.6.1-tuxcare.0 up to 1.6.1-tuxcare.1, plus listed versions 1.6.1 |
1.6.1-tuxcare.1 |
morganTuxCare:npm From an advisory covering 3 CVEs |
1.10.1-tuxcare.0 up to 1.10.1-tuxcare.1, plus listed versions 1.10.1 |
1.10.1-tuxcare.1 |
node-morganDebian:12 |
All versions, plus listed versions 1.10.0+~1.9.3-11.10.1+~1.9.10-11.12.0+~1.9.10-11.12.1+~1.9.10-1 |
None known |
node-morganDebian:13 |
All versions, plus listed versions 1.10.0+~1.9.3-11.10.1+~1.9.10-11.12.0+~1.9.10-11.12.1+~1.9.10-1 |
None known |
node-morganDebian:14 |
before 1.12.0+~1.9.10-1, plus listed versions 1.10.0+~1.9.3-11.10.1+~1.9.10-1 |
1.12.0+~1.9.10-1 |
morgannpm |
1.2.0 up to 1.11.0 | 1.11.0 |
nodejs24Red Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
nodejs24-binRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
nodejs24-develRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
nodejs24-docsRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
nodejs24-full-i18nRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
nodejs24-libsRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
nodejs24-npmRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:11.16.0-1.24.18.0.0.3.hum1 | 0:11.16.0-1.24.18.0.0.3.hum1 |
nodejs24-npm-binRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:24.18.0-0.3.hum1 | 0:24.18.0-0.3.hum1 |
v8-13.6-develRed Hat:hummingbird:1 From an advisory covering 10 CVEs |
before 0:13.6.233.17-1.24.18.0.0.3.hum1 | 0:13.6.233.17-1.24.18.0.0.3.hum1 |
node-morganUbuntu:22.04:LTS |
All versions, plus listed versions 1.10.0-2 |
None known |
node-morganUbuntu:24.04:LTS |
All versions, plus listed versions 1.10.0+~1.9.3-1 |
None known |
node-morganUbuntu:25.10 |
All versions, plus listed versions 1.10.0+~1.9.3-1 |
None known |
node-morganUbuntu:26.10 |
All versions, plus listed versions 1.10.1+~1.9.10-1 |
None known |
node-morganUbuntu:26.04:LTS |
All versions, plus listed versions 1.10.0+~1.9.3-11.10.1+~1.9.10-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-5078 is a medium vulnerability (CVSS 5.3) in Morgan, published June 3, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.33%, the 26th percentile. Fixed in morgan 1.11.0.
References
github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8m
cna.openjsf.org/security-advisories.html
nvd.nist.gov/vuln/detail/CVE-2026-5078
github.com/advisories/GHSA-4vj7-5mj6-jm8m
github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5078.json
security-tracker.debian.org/tracker/CVE-2026-5078
Show 59 moreShow less
github.com/expressjs/morgan
access.redhat.com/errata/RHSA-2026:38236
access.redhat.com/security/cve/CVE-2026-59869
access.redhat.com/security/updates/classification
images.redhat.com
access.redhat.com/security/cve/CVE-2026-53550
access.redhat.com/security/cve/CVE-2026-11525
access.redhat.com/security/cve/CVE-2026-9679
access.redhat.com/security/cve/CVE-2026-6733
access.redhat.com/security/cve/CVE-2026-9678
access.redhat.com/security/cve/CVE-2026-12151
access.redhat.com/security/cve/CVE-2026-9697
access.redhat.com/security/cve/CVE-2026-6734
access.redhat.com/security/cve/CVE-2026-5078
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_38236.json
bugzilla.redhat.com/show_bug.cgi?id=2484311
cve.org/CVERecord?id=CVE-2026-5078
bugzilla.redhat.com/show_bug.cgi?id=2490006
cve.org/CVERecord?id=CVE-2026-6733
nvd.nist.gov/vuln/detail/CVE-2026-6733
github.com/nodejs/undici/security/advisories/GHSA-35p6-xmwp-9g52
hackerone.com/reports/3582376
bugzilla.redhat.com/show_bug.cgi?id=2490024
cve.org/CVERecord?id=CVE-2026-6734
nvd.nist.gov/vuln/detail/CVE-2026-6734
github.com/nodejs/undici/security/advisories/GHSA-hm92-r4w5-c3mj
bugzilla.redhat.com/show_bug.cgi?id=2490000
cve.org/CVERecord?id=CVE-2026-9678
nvd.nist.gov/vuln/detail/CVE-2026-9678
github.com/nodejs/undici/security/advisories/GHSA-pr7r-676h-xcf6
bugzilla.redhat.com/show_bug.cgi?id=2490022
cve.org/CVERecord?id=CVE-2026-9679
nvd.nist.gov/vuln/detail/CVE-2026-9679
github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv
bugzilla.redhat.com/show_bug.cgi?id=2490018
cve.org/CVERecord?id=CVE-2026-9697
nvd.nist.gov/vuln/detail/CVE-2026-9697
github.com/nodejs/undici/security/advisories/GHSA-vmh5-mc38-953g
bugzilla.redhat.com/show_bug.cgi?id=2490008
cve.org/CVERecord?id=CVE-2026-11525
nvd.nist.gov/vuln/detail/CVE-2026-11525
github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m
bugzilla.redhat.com/show_bug.cgi?id=2489980
cve.org/CVERecord?id=CVE-2026-12151
nvd.nist.gov/vuln/detail/CVE-2026-12151
github.com/nodejs/undici/security/advisories/GHSA-vxpw-j846-p89q
bugzilla.redhat.com/show_bug.cgi?id=2491401
cve.org/CVERecord?id=CVE-2026-53550
nvd.nist.gov/vuln/detail/CVE-2026-53550
github.com/nodeca/js-yaml/security/advisories/GHSA-h67p-54hq-rp68
bugzilla.redhat.com/show_bug.cgi?id=2498122
cve.org/CVERecord?id=CVE-2026-59869
nvd.nist.gov/vuln/detail/CVE-2026-59869
github.com/nodeca/js-yaml/commit/24f13e79ee1343a7e30bd6f6c9d9cdbf0ac9b2b7
github.com/nodeca/js-yaml/commit/59423c6f8cdc78742ac00e25a4dd39ef16b702e4
github.com/nodeca/js-yaml/releases/tag/3.15.0
github.com/nodeca/js-yaml/releases/tag/4.3.0
github.com/nodeca/js-yaml/security/advisories/GHSA-52cp-r559-cp3m
ubuntu.com/security/CVE-2026-5078