UBUNTU-CVE-2026-87859

Source
https://ubuntu.com/security/CVE-2026-87859
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87859.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-87859
Upstream
Published
2026-09-11T10:16:00Z
Modified
2026-09-16T11:43:12Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:22.04:LTS / node-morgan

Package

Name
node-morgan
Purl
pkg:deb/ubuntu/node-morgan?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.10.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-morgan",
            "binary_version": "1.10.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87859.json"

Ubuntu:24.04:LTS / node-morgan

Package

Name
node-morgan
Purl
pkg:deb/ubuntu/node-morgan?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.10.0+~1.9.3-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-morgan",
            "binary_version": "1.10.0+~1.9.3-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87859.json"

Ubuntu:26.04:LTS / node-morgan

Package

Name
node-morgan
Purl
pkg:deb/ubuntu/node-morgan?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.10.0+~1.9.3-1
1.10.1+~1.9.10-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "node-morgan",
            "binary_version": "1.10.1+~1.9.10-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87859.json"