ADVISORIES

Vulnerability

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 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.

23 advisories report this vulnerability, across 8 ecosystems.

Advisories

  • CGA-36h9-3v6h-j8h2
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-5jm7-257q-m7w7
    CVE-2026-87859 ChainguardWolfi Updated 5 November 2026
  • CGA-7v3c-hv2g-4xv6
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-cp86-c78v-f496
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-fcj4-vmwv-2jhf
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-fjwg-7hj5-h3jh
    CVE-2026-87859 ChainguardWolfi Updated 5 November 2026
  • CGA-gmj2-p65c-pr36
    CVE-2026-87859 ChainguardWolfi Updated 5 November 2026
  • CGA-j6cc-4q8r-989g
    CVE-2026-87859 ChainguardWolfi Updated 5 November 2026
  • CGA-mcmf-2f6x-hppf
    CVE-2026-87859 ChainguardWolfi Updated 5 November 2026
  • CGA-mgq8-qj6p-mr2x
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-mvmf-75hc-3xr4
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-p73p-r5xf-4wmv
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-q5rv-fx72-jxv5
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-qq4m-5996-q8v8
    CVE-2026-87859 ChainguardWolfi Updated 5 November 2026
  • CGA-qqgq-cqf3-j85v
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • CGA-x42x-wf7c-5jw3
    CVE-2026-87859 Chainguard Updated 5 November 2026
  • DEBIAN-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 Apache combined log…

    CVE-2026-87859 Debian Updated 1 October 2026
  • FEDORA-2026-7277fc13ac

    sgx-pccs-1.27-2.fc44

    Moderate CVE-2026-110095CVE-2026-110180CVE-2026-110306CVE-2026-110725 Fedora Updated 18 November 2026
  • FEDORA-2026-d015d281d3

    sgx-pccs-1.27-2.fc43

    Moderate CVE-2026-110095CVE-2026-110180CVE-2026-110306CVE-2026-110725 Fedora Updated 18 November 2026
  • GHSA-9f6g-j8ch-79g4

    morgan vulnerable to Log Injection via unescaped double quote in quoted log fields

    Moderate CVE-2026-87859 npm Updated 28 September 2026
  • RHVEX-CVE-2026-87859

    morgan: morgan: Log Injection via unescaped double quote in log fields

    Moderate CVE-2026-87859 Red Hat Updated 6 November 2026
  • SUSEVEX-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 Apache combined log…

    Moderate CVE-2026-87859 SUSE Updated 16 October 2026
  • UBUNTU-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 Apache combined log…

    CVE-2026-87859 Ubuntu Updated 24 November 2026

References