morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 1 fixed, 9 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| morgan | morgan | 1.2.0 – 1.10.1 | 1.11.0 | Patch available | CNA |
| — | morgan (npm) | 1.2.0 to before 1.11.0 | 1.11.0 | Patch available | GHSA-4vj7-5mj6-jm8m |
- morgan Vendormorgan Affected 1.2.0 – 1.10.1 Fixed in 1.11.0 Patch available CNA
- morgan (npm) Vendor— Affected 1.2.0 to before 1.11.0 Fixed in 1.11.0 Patch available GHSA-4vj7-5mj6-jm8m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:morgan_project:morgan:*:*:*:*:*:node.js:*:* | 1.2.0 to before 1.11.0 | Vulnerable | Morgan Project |
- cpe:2.3:a:morgan_project:morgan:*:*:*:*:*:node.js:*:* Versions 1.2.0 to before 1.11.0 Vulnerable ·Morgan Project
Remediation
- Fix · CNA morgan (morgan) Fixed in 1.11.0
- Fix · GHSA-4vj7-5mj6-jm8m morgan (npm) Fixed in 1.11.0 Advisory →
Red Hat 1 advisory
- RHSA-2026:38236 Released 2026-07-11 · Red Hat rating ImportantRed Hat Hardened Images RPMs Security Update
- Red Hat Hardened Images nodejs24-1:24.18.0-0.3.hum1@aarch64, nodejs24-1:24.18.0-0.3.hum1@src, nodejs24-1:24.18.0-0.3.hum1@x86_64 +16
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Confidential Compute Attestation | Affected | No fix yet: Fix deferred |
| Cryostat 4 | Affected | No fix yet: Fix deferred |
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux 9 | Affected | No fix yet: Fix deferred |
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Affected | No fix planned: Will not fix |
| Red Hat Openshift Data Foundation 4 | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:38236 |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-5078
- 2026-10-03 Alias added: GHSA-4vj7-5mj6-jm8m
- 2026-10-27 Affected versions changed · Red Hat
References
More morgan vulnerabilities
- TI-2026-59956 morgan vulnerable to Log Injection via unescaped double quote in quoted log fields CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-5078 · CVE Program
- CVE-2026-5078 · NVD
- FIRST EPSS
- GHSA-4vj7-5mj6-jm8m · GitHub Advisory Database · CC BY 4.0
- CVE-2026-5078 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences