{"id":79233,"date":"2026-06-03T11:46:19","date_gmt":"2026-06-03T08:16:19","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-5078-morgan-vulnerable-to-log-forging-via-unneutralized-control-characters-in-remote-user\/"},"modified":"2026-06-03T11:46:19","modified_gmt":"2026-06-03T08:16:19","slug":"cve-2026-5078-morgan-vulnerable-to-log-forging-via-unneutralized-control-characters-in-remote-user","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-5078-morgan-vulnerable-to-log-forging-via-unneutralized-control-characters-in-remote-user\/","title":{"rendered":"CVE-2026-5078 &#8211; morgan vulnerable to Log Forging via unneutralized control characters in :remote-user"},"content":{"rendered":"<p>CVE ID :CVE-2026-5078<\/p>\n<p>  Published : June 3, 2026, 8:16 a.m. | 16\u00a0minutes ago<\/p>\n<p>  Description :Impact: The morgan logging middleware&#8217;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.<\/p>\n<p>  Severity: 5.3 | MEDIUM<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-5078 Published : June 3, 2026, 8:16 a.m. | 16\u00a0minutes ago Description :Impact: The morgan logging middleware&#8217;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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-79233","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=79233"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/79233\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=79233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=79233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=79233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}