[From nobody Sun Sep 13 10:07:06 2026
Received: (at submit) by bugs.debian.org; 12 Sep 2026 15:18:11 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-10.9 required=4.0 tests=BAYES_00,FOURLA,
 FROMDEVELOPER,MD5_SHA1_SUM,NO_RELAYS,XMAILER_REPORTBUG autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 27; hammy, 149; neutral, 71; spammy,
 1. spammytokens:0.940-+--H*r:bugs.debian.org
 hammytokens:0.000-+--XDebbugsCc, 0.000-+--X-Debbugs-Cc,
 0.000-+--H*F:U*carnil, 0.000-+--H*Ad:N*Bug, 0.000-+--HTo:N*Debian
Return-path: &lt;carnil@debian.org&gt;
Received: via submission by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;carnil@debian.org&gt;) id 1x5PUY-00B3nL-1g
 for submit@bugs.debian.org; Sat, 12 Sep 2026 15:18:11 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Salvatore Bonaccorso &lt;carnil@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: node-morgan: CVE-2026-87859
Message-ID: &lt;178922628954.2917236.11606001489885923328.reportbug@eldamar.lan&gt;
X-Mailer: reportbug 13.2.0+nmu1
Date: Sat, 12 Sep 2026 17:18:09 +0200
Delivered-To: submit@bugs.debian.org

Source: node-morgan
Version: 1.12.0+~1.9.10-1
Severity: important
Tags: security upstream
X-Debbugs-Cc: carnil@debian.org, Debian Security Team &lt;team@security.debian.org&gt;

Hi,

The following vulnerability was published for node-morgan.

CVE-2026-87859[0]:
| 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.


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities &amp; Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-87859
    https://www.cve.org/CVERecord?id=CVE-2026-87859
[1] https://github.com/expressjs/morgan/security/advisories/GHSA-9f6g-j8ch-79g4
[2] https://github.com/expressjs/morgan/commit/4b695edf967ce179cdf4009fe8cddd184b7511ee

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore
]