CVE-2026-87859
Last modified
CVE-2026-87859 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.39% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| morgan | morgan | < 1.12.1 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-87859?
How severe is CVE-2026-87859?
How do I fix CVE-2026-87859?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-87853A flaw was found in SSSD's IdP authentication provider. The …7.5
- CVE-2026-87854The Subscriptions for WooCommerce WordPress plugin before 2.…5.3
- CVE-2026-87855The JTL-Connector for WooCommerce plugin for WordPress is vu…9.8
- CVE-2026-87856The Subscriptions for WooCommerce WordPress plugin before 2.…5.3
- CVE-2026-87857Temporal Server does not bind a workflow-history pagination …5.3
- CVE-2026-87858Temporal Server decided whether a Workflow completion callba…7.2
- CVE-2026-8786A vulnerability has been found in Tencent WeKnora up to 0.3.…6.3
- CVE-2026-87860The Subscriptions for WooCommerce WordPress plugin before 2.…4.3
- CVE-2026-87861When using ambient user credentials, an HTTP request directe…9.1
- CVE-2026-87862Importing a `includeSubDomains` parent HSTS entry before a l…8.1
- CVE-2026-87863An authenticated HTTPS origin can supply an HSTS `max-age` v…8.1
- CVE-2026-87864Enabling `CURLOPT_CRLF` causes curl to advertise the raw inp…8.1
Are you affected by CVE-2026-87859?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
