cve.bz

CVE-2026-5078 morgan project morgan: Improper Output Neutralization for Logs

5.3 mediumEPSS 0.3%Fix available

Medium (5.3) in morgan project morgan. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in morgan 1.11.0.

On this page
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.

Severity

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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-06-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-117 Improper Output Neutralization for Logs
OWASP Top 10
A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-5078 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5078?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5078?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5078 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
morganfrom 1.2.0 through 1.10.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-4vj7-5mj6-jm8mnpmmorgan>=1.2.0 <1.11.01.11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-morganno fix listedDEBIAN-CVE-2026-5078
Debian14node-morgan1.12.0+~1.9.10-1DEBIAN-CVE-2026-5078
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 2 morenode-morganno fix listedUBUNTU-CVE-2026-5078
Red Hathummingbird:1nodejs24, nodejs24-bin, nodejs24-docs and 4 more1:24.18.0-0.3.hum1RHSA-2026:38236
Red Hathummingbird:1nodejs24-npm1:11.16.0-1.24.18.0.0.3.hum1RHSA-2026:38236
Red Hathummingbird:1v8-13.6-devel3:13.6.233.17-1.24.18.0.0.3.hum1RHSA-2026:38236

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The morgan npm logging middleware is vulnerable to log forgery via unneutralized control characters in the :remote-user token extracted from Basic Authorization headers. A remote unauthenticated attacker can send crafted requests to inject forged log lines, impacting log integrity. Built-in combined, common, default, and short formats are affected; fixed in morgan 1.11.0. Affects ODF mcg-core, RHDH, hummingbird nodejs, cryostat, AAP portal, and other npm morgan consumers.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesnodejs24-main-11.16.0-1.24.18.0.0.3.hum1Fixed 2026-07-11RHSA-2026:38236
Red Hat Hardened Imagesnodejs24-main-24.18.0-0.3.hum1Fixed 2026-07-11RHSA-2026:38236
Confidential Compute Attestationopenshift-sandboxed-containers/osc-pccsFix deferred
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Fix deferred
Red Hat Developer Hub 1rhdh/rhdh-hub-rhel9Fix deferred
Red Hat Enterprise Linux 10linux-sgxFix deferred
Red Hat Enterprise Linux 9linux-sgxFix deferred
Red Hat Fuse 7morganFix deferred
Red Hat Hardened Imagesnodejs20Will not fix
Red Hat Hardened Imagesnodejs22Not affected
Red Hat Hardened Imagesnodejs25Will not fix
Red Hat Hardened Imagesnodejs26Not affected
Red Hat Openshift Data Foundation 4odf4/mcg-core-rhel9Fix deferred
Red Hat Openshift Data Foundation 4rhceph-dev/odf4-mcg-core-rhel9Fix deferred
Self-service automation portal 2ansible-automation-platform/automation-portalFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5078.

Attack patterns (CAPEC)

  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-93 Log Injection-Tampering-Forging Likelihood: High · Severity: High
  • CAPEC-268 Audit Log Manipulation

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON