{"id":"UBUNTU-CVE-2026-5078","details":"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.","modified":"2026-06-11T13:01:58Z","published":"2026-06-03T08:16:00Z","upstream":["CVE-2026-5078"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-5078"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-5078"},{"type":"REPORT","url":"https://cna.openjsf.org/security-advisories.html"},{"type":"REPORT","url":"https://github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8m"}],"affected":[{"package":{"name":"node-morgan","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-morgan?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.10.0-2","binary_name":"node-morgan"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5078.json"}},{"package":{"name":"node-morgan","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-morgan?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0+~1.9.3-1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.10.0+~1.9.3-1","binary_name":"node-morgan"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5078.json"}},{"package":{"name":"node-morgan","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-morgan?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0+~1.9.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-morgan","binary_version":"1.10.0+~1.9.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5078.json"}},{"package":{"name":"node-morgan","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-morgan?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0+~1.9.3-1","1.10.1+~1.9.10-1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-morgan","binary_version":"1.10.1+~1.9.10-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-5078.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}