{"id":"CVE-2026-5078","published":"2026-06-03T05:56:49Z","modified":"2026-06-03T13:19:32Z","title":"morgan vulnerable to Log Forging via unneutralized control characters in :remote-user","vendor":"morgan","product":"morgan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00332,"percentile":0.27106,"provenance":"source"},"cwes":[{"id":"CWE-117","name":"Improper Output Neutralization for Logs"}],"references":[{"url":"https://github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8m","tags":[]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":5.42},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"morgan","affectedVersions":[{"vendor":"morgan","product":"morgan","versions":[">= 1.2.0, <= 1.10.1"]}],"fixedVersions":[{"vendor":"morgan","product":"morgan","versions":["1.11.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-03T13:16:59.663217Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"morgan","vulnerableRanges":[">=1.2.0, <1.11.0"],"patched":["1.11.0"],"from":["GHSA-4vj7-5mj6-jm8m"],"provenance":"source"}],"summary":{"text":"The morgan logging middleware's :remote-user token, which writes the Basic auth username from the Authorization header into logs, fails to neutralise control characters, allowing attackers to inject forged log lines and break the one-request-per-line structure of access logs. An unauthenticated remote attacker can exploit this simply by sending a crafted Authorization Basic header containing CR or LF bytes, with no user interaction needed, and the built-in combined, common, default and short formats, as well as custom formats that reference :remote-user, are affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:47Z"},"euvd":{"id":"EUVD-2026-34067","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-morgan-cve-2026-5078","children":[{"from":"CVE-2026-5078","to":"CVE-2026-15603","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is a log forging issue (CWE-117) and an incomplete-fix follow-up to CVE-2026-5078, which only addressed ASCII control characters.","from":"CVE.org","in":"CVE-2026-15603"},{"kind":"version-step","provenance":"source","package":"npm:morgan","fromFixed":"1.11.0","toFixed":"1.12.0","daysApart":86},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2019-5413","published":"2019-03-17","fixed":"1.9.1","kev":false},{"cve":"CVE-2026-5078","published":"2026-06-03","fixed":"1.11.0","kev":false},{"cve":"CVE-2026-15603","published":"2026-08-28","fixed":"1.12.0","kev":false},{"cve":"CVE-2026-87859","published":"2026-09-11","fixed":"1.12.1","kev":false}],"package":"npm:morgan"}}