Advisory

GHSA-4vj7-5mj6-jm8m

Also known as: CVE-2026-5078

Summary

morgan vulnerable to Log Forging via unneutralized control characters in :remote-user

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-07-10 14:32 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

morgan

npm · All systems

Affected

  • introduced 1.2.0, fixed 1.11.0 (semver)

Fixed versions

1.11.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences