Every CVE Search/ Get API key

CVE-2026-5078

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

5.3 MediumFix available

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

0.33%Up 0.3 points since Jun 3, 2026
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 HighCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
morgan
npm
1.2.0 to 1.10.1
1.11.0
morgan
TuxCare: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
morgan
TuxCare:npm
1.6.1-tuxcare.0 up to 1.6.1-tuxcare.1, plus listed versions
1.6.1
1.6.1-tuxcare.1
morgan
TuxCare: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-morgan
Debian: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-morgan
Debian: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-morgan
Debian: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
morgan
npm
1.2.0 up to 1.11.0
1.11.0
nodejs24
Red 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-bin
Red 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
Affected packages
PackageAffectedFixed
nodejs24-devel
Red 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-docs
Red 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-i18n
Red 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-libs
Red 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-npm
Red 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-bin
Red 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-devel
Red 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-morgan
Ubuntu:22.04:LTS
All versions, plus listed versions
1.10.0-2
None known
node-morgan
Ubuntu:24.04:LTS
All versions, plus listed versions
1.10.0+~1.9.3-1
None known
node-morgan
Ubuntu:25.10
All versions, plus listed versions
1.10.0+~1.9.3-1
None known
node-morgan
Ubuntu:26.10
All versions, plus listed versions
1.10.1+~1.9.10-1
None known
node-morgan
Ubuntu:26.04:LTS
All versions, plus listed versions
1.10.0+~1.9.3-11.10.1+~1.9.10-1
None known

History

History
RecordedChangedSources
affected, facts
first indexedCVE 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

Show 59 moreShow less
MoveEnter Open