CVE-2026-87859Disclosure

LOWCVSS 5.3 · MEDIUM

Signal is active with 2 mentions in latest observed window

Immediate actions

  • Patch affected systems immediately

Recommended action window: Monitor and triage in normal cycle

NVD description

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.

0.5/ 10 priority

Sources & remediation

Weakness type (CWE)
CWE-117

Priority

LOW

Exploitation

NONE

PoC

NONE

Patch

AVAILABLE

Momentum

NONE

Threat summary

  • Patch or workaround signal is available
  • 2 mentions across 1 observed day

What's happening

  • Patch or workaround mentioned in 1 signal
  • Technical details provided in 2 signals
  • Disclosure: 1 classified signal
  • 2 total mentions across 1 day

Deep dive

Activity timeline2 mentions / 1d
01122Mentions · 2026-09-11: 2Patch / Workaround · 2026-09-11: 1Technical Details · 2026-09-11: 209-11
Signal classification2 categories
Disclosure
150.0%
Patch
150.0%
Referenced assets2 URLs
Full discourse2 posts
  • Ulises Gascón@kom_256
    Patch

    🚨 Medium-severity security fix in morgan@1.12.1 just released! Patches CVE-2026-87859: morgan vulnerable to Log Injection via unescaped double quote in quoted log fields https://github.com/expressjs/morgan/security/advisories/GHSA-9f6g-j8ch-79g4

    Post summary

    A medium‑severity security fix for Morgan 1.12.1 addresses CVE‑2026‑87859, which involves a log injection flaw caused by unescaped double quotes in quoted log fields.

    00010179
    5.5K followersView on X
  • CVE@CVEnew
    Disclosure

    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 de… https://www.cve.org/CVERecord?id=CVE-2026-87859

    Post summary

    The post discloses that morgan’s escapeLogField() function fails to escape double quotes in versions before 1.12.1, potentially leading to security issues.

    000001.4K
    58.1K followersView on X

Explore more