CVE catalog

CVE-2026-87859

morgan is an HTTP request logger middleware for Node.js. In versions before 1.12.1, its escapeLogField() function does not escape the double quote character, which delimits the quoted fields of the Ap

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.41% · Oct 25, 2026

morgan is an HTTP request logger middleware for Node.js. In versions before 1.12.1, its escapeLogField() function does not escape the double quote character, which delimits the quoted fields of the Apache combined log format that morgan emits. An unauthenticated remote attacker who controls a value written to a quoted field, such as the User-Agent or Referer header, can include a double quote to close that field early, so a log consumer that parses the log by field position reads attacker-supplied text as the following field. In the built-in formats this makes the recorded value differ from the value that was sent, and in custom formats that quote an attacker-controlled token before a server-controlled one it can forge values such as the response status. No newline is injected, so record separation stays intact. The issue is fixed in morgan 1.12.1, which escapes the double quote. Users should upgrade to morgan 1.12.1 or later.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-morgansid1.12.1+~1.9.10-1fixed
Debiannode-morganforky1.12.1+~1.9.10-1fixed
Debiannode-morgantrixie1.10.0+~1.9.3-1vulnerable
Debiannode-morganbookworm1.10.0+~1.9.3-1vulnerable
NpmmorganNot reported1.12.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-morgansourcesid1.12.1+~1.9.10-1not yet assignedNot reported[1147520]
Debiannode-morgansourceforky1.12.1+~1.9.10-1not yet assignedNot reported[1147520]
Debiannode-morgansourcetrixie(unfixed)not yet assignedNot reported[1147520]
Debiannode-morgansourcebookworm(unfixed)not yet assignedNot reported[1147520]
NpmmorgannpmNot reported1.12.1Not reportedGHSA-9F6G-J8CH-79G4Not reported

[Debian bug #1147520]

Notes

[trixie] node-morgan: Minor issue [bookworm] node-morgan: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-morgan]Affected
    Details (2)
    • 1.10.0+~1.9.3-1 · all · bookworm

      Affected

      nvd · node-morgan · debian · bookworm; nvd · node-morgan · debian · 12

    • 1.10.0+~1.9.3-1 · all · bookworm

      Affected

      nvd · node-morgan · debian · bookworm; nvd · node-morgan · debian · 12

[Debian 13 (Trixie)]

  • [node-morgan]Affected
    Details (2)
    • 1.10.0+~1.9.3-1 · all · trixie

      Affected

      nvd · node-morgan · debian · 13

    • 1.10.0+~1.9.3-1 · all · trixie

      Affected

      nvd · node-morgan · debian · 13

Observed:

References