{"id":"GHSA-4vj7-5mj6-jm8m","revision":"cc716bf2930749f78f9dd77552be42e2","records":[{"revision":"cc716bf2930749f78f9dd77552be42e2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-4vj7-5mj6-jm8m","aliases":["CVE-2026-5078"],"title":"morgan vulnerable to Log Forging via unneutralized control characters in :remote-user","description":"### Impact\n\nMorgan's `:remote-user` token extracts the Basic auth username from the `Authorization` header and writes it to the log stream without neutralizing control characters. An attacker can send a crafted `Authorization: Basic` header containing CR/LF characters to inject forged log lines, corrupting the one-request-per-line structure of access logs.\n\nThe built-in `combined`, `common`, `default`, and `short` formats are affected, as well as any custom format that includes `:remote-user`.\n\n### Patches\n\nUsers should upgrade to version 1.11.0.\n\n### Workarounds\n\nUse a custom format string that does not include `:remote-user`.","state":0,"publishedAt":"2026-07-10T14:32:15+00:00","modifiedAt":"2026-09-10T03:51:10.3384356+00:00","affected":[{"ecosystem":"npm","name":"morgan","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.2.0"},{"kind":"fixed","version":"1.11.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8m","https://nvd.nist.gov/vuln/detail/CVE-2026-5078","https://cna.openjsf.org/security-advisories.html","https://github.com/expressjs/morgan"],"sourceUrl":"https://github.com/advisories/GHSA-4vj7-5mj6-jm8m","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-4vj7-5mj6-jm8m","identifiers":["GHSA-4vj7-5mj6-jm8m","CVE-2026-5078"]},"retained":false,"historicalAffected":[]}],"coverage":[]}