PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-87859 morgan CVE debrief

A vulnerability in the morgan HTTP request logger middleware for Node.js allows an unauthenticated remote attacker to inject malicious data into log files by exploiting the lack of double quote escaping in the escapeLogField() function. This issue, fixed in morgan 1.12.1, can lead to log tampering and potential security issues. Node.js developers and administrators should assess their exposure and upgrade to morgan 1.12.1 or later to prevent log tampering and ensure accurate logging. The vulnerability can be used to forge log values, potentially leading to incorrect incident response.

Vendor
morgan
Product
Unknown
CVSS
MEDIUM 5.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-09-11
Original CVE updated
2026-09-11
Advisory published
2026-09-11
Advisory updated
2026-09-11

Who should care

Node.js developers and administrators using the morgan middleware should assess their exposure and upgrade to morgan 1.12.1 or later to prevent log tampering and ensure accurate logging. The vulnerability can be used to forge log values, potentially leading to incorrect incident response. Affected operator, platform, vulnerability-management, and security-team impact should be reviewed to ensure proper mitigation.

Why it matters

The CVE-2026-87859 vulnerability in morgan HTTP request logger middleware for Node.js allows an unauthenticated remote attacker to inject malicious data into log files, potentially leading to log tampering and security issues. Node.js developers and administrators should assess their exposure and upgrade to morgan 1.12.1 or later.

  • Log tampering can lead to inaccurate logging and potential security issues.
  • An attacker can inject malicious data into log files, potentially leading to incorrect security assessments.
  • The vulnerability can be used to forge log values, potentially leading to incorrect incident response.

Technical summary

The morgan HTTP request logger middleware for Node.js is vulnerable to log tampering due to a lack of double quote escaping in the escapeLogField() function. This allows an unauthenticated remote attacker to inject malicious data into log files, potentially leading to log tampering and security issues. The vulnerability can be used to forge log values, potentially leading to incorrect incident response. Node.js developers and administrators should assess their exposure and upgrade to morgan 1.12.1 or later to prevent log tampering.

Defensive priority

Upgrade to morgan 1.12.1 or later to prevent log tampering.

Recommended defensive actions

  • Upgrade to morgan 1.12.1 or later
  • Review and update logging configurations
  • Monitor log files for potential tampering
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The CVE record and NVD entry provide details on the vulnerability, but the scope of affected systems and potential impact require further verification and defensive review. Affected product deployments need to be confirmed in managed environments, and owners should be assigned for follow-up. The official advisory or CVE record should be reviewed to validate affected scope, severity, and vendor guidance. Compensating controls for exposed systems should be reviewed while remediation is scheduled and verified.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-87859 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-87859

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-87859 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-87859

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://cna.openjsf.org/security-advisories.html

    ce714d77-add3-4f53-aff5-83d477b104bb

  • Source reference

    Unverified legacy reference

    URL: https://github.com/expressjs/morgan/security/advisories/GHSA-9f6g-j8ch-79g4

    ce714d77-add3-4f53-aff5-83d477b104bb

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.