morgan
Affected
- introduced
1.2.0, fixed1.11.0(semver)
Fixed versions
1.11.0
Fix
- Fixed version
1.11.0npm install [email protected]
Advisory
Also known as: CVE-2026-5078
morgan vulnerable to Log Forging via unneutralized control characters in :remote-user
Impact
Morgan'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.
The built-in combined, common, default, and short formats are affected, as well as any custom format that includes :remote-user.
Patches
Users should upgrade to version 1.11.0.
Workarounds
Use a custom format string that does not include :remote-user.
Medium Basis: The source's own band: MODERATE
1.2.0, fixed 1.11.0 (semver)1.11.0
1.11.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0