
CVE catalog
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 delimits the quoted fields of the Ap
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | node-morgan | sid | 1.12.1+~1.9.10-1 | fixed |
| Debian | node-morgan | forky | 1.12.1+~1.9.10-1 | fixed |
| Debian | node-morgan | trixie | 1.10.0+~1.9.3-1 | vulnerable |
| Debian | node-morgan | bookworm | 1.10.0+~1.9.3-1 | vulnerable |
| Npm | morgan | Not reported | 1.12.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | node-morgan | source | sid | 1.12.1+~1.9.10-1 | not yet assigned | Not reported | [1147520] |
| Debian | node-morgan | source | forky | 1.12.1+~1.9.10-1 | not yet assigned | Not reported | [1147520] |
| Debian | node-morgan | source | trixie | (unfixed) | not yet assigned | Not reported | [1147520] |
| Debian | node-morgan | source | bookworm | (unfixed) | not yet assigned | Not reported | [1147520] |
| Npm | morgan | npm | Not reported | 1.12.1 | Not reported | GHSA-9F6G-J8CH-79G4 | Not reported |
Notes
[trixie] node-morgan: Minor issue [bookworm] node-morgan: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [node-morgan]Affected
Details (2)
1.10.0+~1.9.3-1· all · bookwormAffected
nvd · node-morgan · debian · bookworm; nvd · node-morgan · debian · 12
1.10.0+~1.9.3-1· all · bookwormAffected
nvd · node-morgan · debian · bookworm; nvd · node-morgan · debian · 12
[Debian 13 (Trixie)]
- [node-morgan]Affected
Details (2)
1.10.0+~1.9.3-1· all · trixieAffected
nvd · node-morgan · debian · 13
1.10.0+~1.9.3-1· all · trixieAffected
nvd · node-morgan · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/advisories/GHSA-9f6g-j8ch-79g4]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-87859]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-87859]
- [https://security-tracker.debian.org/tracker/CVE-2026-87859]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-87859.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]