CVE-2026-87859 morgan vulnerable to Log Injection via unescaped double quote in quoted log fields
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
19 packages: 3 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-morgan(Debian 12) | = 1.10.0+~1.9.3-1; = 1.10.1+~1.9.10-1; = 1.12.0+~1.9.10-1; = 1.12.1+~1.9.10-1 +1 more | No fix listed | No fix yet |
| debian/node-morgan(Debian 13) | = 1.10.0+~1.9.3-1; = 1.10.1+~1.9.10-1; = 1.12.0+~1.9.10-1; = 1.12.1+~1.9.10-1 +1 more | No fix listed | No fix yet |
| redhat/cryostat/cryostat-openshift-console-plugin-rhel9(Red Hat cryostat 4) | All versions | No fix listed | No fix yet |
| redhat/linux-sgx(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/linux-sgx(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/nodejs20(Red Hat hummingbird 1) | All versions | No fix listed | No fix yet |
| redhat/nodejs22(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/nodejs24(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/nodejs25(Red Hat hummingbird 1) | All versions | No fix listed | No fix yet |
| redhat/nodejs26(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/nodejs:22/nodejs(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/odf4/mcg-core-rhel9(Red Hat openshift_data_foundation 4) | All versions | No fix listed | No fix yet |
| ubuntu/node-morgan(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-morgan(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-morgan(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-morgan(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-morgan(Debian 14) | < 1.12.1+~1.9.10-1; = 1.10.0+~1.9.3-1; = 1.10.1+~1.9.10-1; = 1.12.0+~1.9.10-1 | 1.12.1+~1.9.10-1 | Fixed |
| npm morgan | < 1.12.1 | 1.12.1 | Fixed |
| npm morgan(npm) | < 1.12.1 | 1.12.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm morgan | < 1.12.1 | 1.12.1 |
| redhat/cryostat/cryostat-openshift-console-plugin-rhel9(Red Hat:cryostat:4) | All versions | No fix listed |
| redhat/linux-sgx(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/nodejs22(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/nodejs24(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/nodejs26(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/linux-sgx(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/nodejs:22/nodejs(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/morgan(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/nodejs20(Red Hat:hummingbird:1) | All versions | No fix listed |
| redhat/nodejs25(Red Hat:hummingbird:1) | All versions | No fix listed |
| redhat/odf4/mcg-core-rhel9(Red Hat:openshift_data_foundation:4) | All versions | No fix listed |
| npm morgan(npm) | < 1.12.1 | 1.12.1 |
| debian/node-morgan(Debian:12) | All versions | No fix listed |
| debian/node-morgan(Debian:12) | = 1.10.0+~1.9.3-1 | No fix listed |
| debian/node-morgan(Debian:12) | = 1.10.1+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:12) | = 1.12.0+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:12) | = 1.12.1+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:13) | All versions | No fix listed |
| debian/node-morgan(Debian:13) | = 1.10.0+~1.9.3-1 | No fix listed |
| debian/node-morgan(Debian:13) | = 1.10.1+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:13) | = 1.12.0+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:13) | = 1.12.1+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:14) | < 1.12.1+~1.9.10-1 | 1.12.1+~1.9.10-1 |
| debian/node-morgan(Debian:14) | = 1.10.0+~1.9.3-1 | No fix listed |
Show 6 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/node-morgan(Debian:14) | = 1.10.1+~1.9.10-1 | No fix listed |
| debian/node-morgan(Debian:14) | = 1.12.0+~1.9.10-1 | No fix listed |
| ubuntu/node-morgan(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-morgan(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-morgan(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-morgan(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com vendor-advisory
- cna.openjsf.org
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2531809 issue-tracking
- www.cve.org
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com
- github.com
- Debian Security Tracker CVE-2026-87859 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- github.com product
- ENISA EUVD EUVD-2026-76027 third-party-advisory