CVE-2026-87859
MEDIUMDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Exploit Intelligence
Low risk: more likely to be exploited than 33% of all known CVEs.
References
Related Vulnerabilities
Other CWE-117 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2021-43410 | Medium | 5.3 | 2.4% | - | Fix |
| CVE-2022-32549 | Medium | 5.3 | 2.4% | - | - |
| CVE-2019-14864 | Medium | 6.5 | 1.9% | - | Fix |
| CVE-2021-42250 | Medium | 6.5 | 1.8% | - | Fix |
| CVE-2024-47083 | High | 7.5 | 1.6% | - | - |
| CVE-2020-25646 | High | 7.5 | 1.4% | - | - |
Common questions
How do I fix CVE-2026-87859?
Upgrade node-morgan on debian unstable to 1.12.1+~1.9.10-1 or later.
Is CVE-2026-87859 being actively exploited?
Not that we know of. CVE-2026-87859 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.39% is the estimated probability that it will be exploited in the next 30 days. That is higher than 33% of all scored CVEs.
How severe is CVE-2026-87859?
CVE-2026-87859 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2026-87859 affect?
Published advisories record a fix for node-morgan (Debian). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2026-87859
Markdown
[](https://tridentstack.com/cve/CVE-2026-87859)HTML
<a href="https://tridentstack.com/cve/CVE-2026-87859"><img src="https://tridentstack.com/cve/badge/CVE-2026-87859.svg" alt="CVE-2026-87859"></a>Check your Linux endpoints for this class of vulnerability
TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-16.