SEPTEMBER 14, 2026
Live Feed
Back to database
Case File

CVE-2026-87859

MEDIUM · CVSS 5.3 EPSS 0.39% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-09-11 · Last synced 2026-09-14

CyberRota Analysis

AI-Generated

The vulnerability affects the morgan HTTP request logger middleware for Node.js, specifically in versions prior to 1.12.1, where the escapeLogField() function fails to properly escape double quote characters. This flaw allows unauthenticated remote attackers to manipulate log entries by injecting double quotes into fields like User-Agent or Referer, potentially leading to forged log values and misleading information in log analysis. Organizations using affected versions of morgan should prioritize upgrading to version 1.12.1 or later to mitigate this risk.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

GitHub PoC Links

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-87859
Severity
MEDIUM
CVSS
5.3
EPSS
0.39%
Apache

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