{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-5078","id":"CVE-2026-5078","title":"morgan vulnerable to Log Forging via unneutralized control characters in :remote-user","description":"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 enabli","descriptionLong":"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.","published":"2026-06-03T05:56:49.512Z","updated":"2026-10-28T02:30:48.502878003Z","reserved":"2026-03-28T17:42:51.328Z","status":"Analyzed","rejected":false,"assigner":"openjs","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"openjs"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"openjs"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["morgan"],"affectedProducts":[{"vendor":"morgan","product":"morgan","defaultStatus":"unaffected","versions":[{"status":"affected","version":"1.2.0","lessThanOrEqual":"1.10.1","versionType":"semver"},{"status":"unaffected","version":"1.11.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"morgan","purl":"pkg:npm/morgan","ranges":[">=1.2.0 <1.11.0"],"fixed":["1.11.0"],"advisory":"GHSA-4vj7-5mj6-jm8m"}],"cwes":["CWE-117"],"aliases":["GHSA-4vj7-5mj6-jm8m"],"references":[{"url":"https://github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8m","tags":["Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["Third Party Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5078.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5078","tags":["advisory"]},{"url":"https://github.com/expressjs/morgan","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00332,"epssPercentile":0.26969,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-5078","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5078","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-5078","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4vj7-5mj6-jm8m","ok":true,"note":"GHSA-4vj7-5mj6-jm8m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-5078","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}