Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-87859

Type: advisorySource: OSV1 source record

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.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-87859

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-87859

node-morgan

Source reference: /affected/0/package/name

Affected versions
1.10.0+~1.9.3-1

Source reference: /affected/0/versions

1.10.1+~1.9.10-1

Source reference: /affected/0/versions

1.12.0+~1.9.10-1

Source reference: /affected/0/versions

1.12.1+~1.9.10-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

node-morgan

Source reference: /affected/1/package/name

Affected versions
1.10.0+~1.9.3-1

Source reference: /affected/1/versions

1.10.1+~1.9.10-1

Source reference: /affected/1/versions

1.12.0+~1.9.10-1

Source reference: /affected/1/versions

1.12.1+~1.9.10-1

Source reference: /affected/1/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

node-morgan

Source reference: /affected/2/package/name

Affected versions
1.10.0+~1.9.3-1

Source reference: /affected/2/versions

1.10.1+~1.9.10-1

Source reference: /affected/2/versions

1.12.0+~1.9.10-1

Source reference: /affected/2/versions

Fixed versions
1.12.1+~1.9.10-1

Source reference: /affected/2/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "node-morgan",
      "purl": "pkg:deb/debian/node-morgan?arch=source&distro=bookworm",
      "ecosystem": "Debian:12"
    },
    "versions": [
      "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"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-87859.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "node-morgan",
      "purl": "pkg:deb/debian/node-morgan?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "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"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-87859.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "1.12.1+~1.9.10-1"
          }
        ]
      }
    ],
    "package": {
      "name": "node-morgan",
      "purl": "pkg:deb/debian/node-morgan?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "1.10.0+~1.9.3-1",
      "1.10.1+~1.9.10-1",
      "1.12.0+~1.9.10-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-87859.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#58522 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement