{"id":"GHSA-9f6g-j8ch-79g4","revision":"6a7a0f7fe4f14e77aacadc9cbc728c6f","records":[{"revision":"6a7a0f7fe4f14e77aacadc9cbc728c6f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-9f6g-j8ch-79g4","aliases":["CVE-2026-87859"],"title":"morgan vulnerable to Log Injection via unescaped double quote in quoted log fields","description":"### Impact\n\nMorgan writes attacker-controlled request data to the access log. Its escaping (added in 1.11.0 and 1.12.0) neutralizes control characters, the Unicode line separators, and backslash, but not the double quote (`0x22`), which is the field delimiter of the Apache combined log format morgan emits. An attacker who controls a quoted field (`:user-agent`, `:referrer`, the request URL, or the Basic auth `:remote-user`) can inject a double quote to close the field early and forge additional fields in the log record. The `combined`, `common`, and `default` formats, and any custom format that quotes a token, are affected. This is an incomplete fix of CVE-2026-5078 and CVE-2026-15603.\n\n### Patches\n\nUsers should upgrade to version 1.12.1.\n\n### Workarounds\n\nUpdate to version 1.12.1.","state":0,"publishedAt":"2026-09-28T21:33:08+00:00","modifiedAt":"2026-09-28T21:45:03.8580409+00:00","affected":[{"ecosystem":"npm","name":"morgan","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/expressjs/morgan/security/advisories/GHSA-9f6g-j8ch-79g4","https://nvd.nist.gov/vuln/detail/CVE-2026-87859","https://github.com/expressjs/morgan/commit/4b695edf967ce179cdf4009fe8cddd184b7511ee","https://cna.openjsf.org/security-advisories.html","https://github.com/expressjs/morgan","https://github.com/expressjs/morgan/releases/tag/1.12.1"],"sourceUrl":"https://github.com/advisories/GHSA-9f6g-j8ch-79g4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9f6g-j8ch-79g4","identifiers":["GHSA-9f6g-j8ch-79g4","CVE-2026-87859"]},"retained":false,"historicalAffected":[]}],"coverage":[]}