Impact: The morgan logging middleware's :remote-user token extracts the Basic auth username from the…
Historical advisory recorded 25 Oct 2026 13:17:10 UTC. Read the latest advisory.
nvd · CVE-2026-5078
PublishedImpact: 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2026-5078
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-117
Original publisher date fields
published: 2026-06-03T08:16:19.743
lastModified: 2026-07-22T19:10:00.120
1 source CPE criteria · context only
- cpe:2.3:a:morgan_project:morgan:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON