CVE-2026-87859: morgan vulnerable to Log Injection via unescaped double quote in quoted log fields
Affects morganSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 1.12.1 when convenient.
Data as of 12 Nov 2026, 23:24 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.12.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 28 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade morgan to 1.12.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmmorgan | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Users should upgrade Morgan to version 1.12.1, where the vulnerability is fixed. No other workarounds are indicated. The patch is officially available and addresses the issue.
Description
Morgan versions prior to 1.12.1 are vulnerable to log injection via unescaped double quotes in quoted log fields. This vulnerability allows an attacker controlling certain request fields to inject double quotes that prematurely close quoted fields in the Apache combined log format, enabling forged log entries. The issue affects the combined, common, default, and any custom formats that quote tokens. A fix is available in version 1.12.1.
References
- github.com/expressjs/morgan/security/advisories/GHSA-9f6g-j8ch-79g4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-87859 (opens in a new tab)
- github.com/expressjs/morgan/commit/4b695edf967ce179cdf4009fe8cddd184b7511ee (opens in a new tab)
- cna.openjsf.org/security-advisories.html (opens in a new tab)
- github.com/expressjs/morgan (opens in a new tab)
- github.com/expressjs/morgan/releases/tag/1.12.1 (opens in a new tab)