Skip to main content

morgan CVE-2026-15603

| EUVDEUVD-2026-67720 MEDIUM
Improper Output Neutralization for Logs (CWE-117)
2026-08-28 openjs GHSA-jxfw-x594-9x9m
5.3
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send HTTP request with crafted Basic auth username
  2. Delivery
    Embed U+2028 or U+2029 in username field
  3. Exploit
    Morgan logs unsanitized :remote-user token
  4. Execution
    Unicode-aware log processor splits single record at injected separator
  5. Persist
    False log entry injected into audit trail
  6. Impact
    Genuine request record obscured or suppressed in SIEM

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log output neutralization
Exploitation Conditions

Exploitation requires that the target application uses the morgan npm package for HTTP request logging and that at least one log token reflects attacker-controlled request data. The most direct attack path uses the :remote-user token, which surfaces the HTTP Basic authentication username - a value fully controlled by an unauthenticated client without any prior account or session. No special application configuration beyond the default use of morgan with the combined or common log format is needed. The attack is further constrained to downstream log processors that treat U+0085, U+2028, or U+2029 as line delimiters; POSIX-only systems splitting on LF/CR only will ingest the characters without record splitting, though the unsanitized bytes will persist in the log store. There is no confidentiality or availability prerequisite - the attacker only needs the ability to send HTTP requests to any endpoint instrumented by morgan.

Impact

The CVSS 3.1 score of 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N) accurately reflects the attack surface and limited impact: any unauthenticated remote client can trigger the vulnerability with a crafted HTTP request, but the consequence is confined to log integrity - no code execution, no confidentiality breach, no availability impact. No EPSS score was provided in the input data, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, and no POC or exploit code has been identified. Real-world risk is context-dependent: environments using morgan in conjunction with Unicode-aware log aggregators (Elasticsearch/Kibana with JavaScript-native parsing, cloud-native logging stacks) face meaningful audit trail manipulation risk, particularly where automated log-based alerting or compliance audit trails could be polluted or suppressed. Environments using POSIX-only line-splitting (newline-delimited only) will pass the characters through without splitting, reducing exploitation impact. The follow-up nature of this CVE to CVE-2026-5078 suggests an attacker aware of the original fix could have anticipated the Unicode bypass, though no evidence of targeted exploitation is present in the available data.

Exploit ScenarioDerived

An attacker sends an HTTP request to a morgan-instrumented Express application with a Basic auth header whose username contains U+2028 followed by a crafted string formatted to resemble a legitimate log record - for example, a fake successful login from a trusted IP with an innocuous status code. Morgan writes the unsanitized username via the :remote-user token, and the downstream log processor (e.g., an Elasticsearch ingest pipeline or a JavaScript-native log parser) interprets U+2028 as a line boundary, splitting the single request into two records: the real one (potentially revealing the attack) and the attacker-crafted false record, which may displace or obscure the genuine entry in SIEM dashboards.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 28, 2026

Log forging in morgan HTTP request logger middleware for Node.js (all versions prior to 1.12.0) allows unauthenticated remote attackers to inject Unicode line separator characters - U+0085 (Next Line), U+2028 (Line Separator), and U+2029 (Paragraph Separator) - into log output via attacker-controlled token values such as the Basic auth username surfaced through the remote-user token. This causes Unicode-aware downstream log processors and SIEM pipelines to split a single HTTP request record into multiple logical entries, enabling false log injection and audit trail manipulation. This is an incomplete-fix follow-up to CVE-2026-5078, which addressed only ASCII control characters; no public exploit has been identified at time of analysis.

RemediationAI

Upgrade morgan to version 1.12.0 or later, which extends the internal token-escaping helper to cover Unicode line separator characters U+0085, U+2028, and U+2029 in addition to ASCII control characters addressed in the prior fix. The authoritative upgrade guidance is provided in the vendor security advisory at https://github.com/expressjs/morgan/security/advisories/GHSA-jxfw-x594-9x9m. If an immediate upgrade is blocked by dependency constraints, a compensating control is to sanitize attacker-controlled values at the application middleware layer before they reach morgan - for example, stripping or replacing U+0085, U+2028, and U+2029 in authentication middleware applied ahead of the logger. This workaround introduces maintenance overhead and may fail to cover all token sources (referrer, URL, custom tokens) unless applied comprehensively. As a secondary defense, configure log aggregation pipelines (e.g., Logstash, Fluent Bit) to flag or normalize these Unicode code points on ingest, which limits downstream impact without addressing the root cause.

Affected VersionsENISA

morgan 0 <1.12.0

Affected Packages

npm morgan fix: 1.12.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

morgan is the de facto HTTP request logging middleware for Node.js/Express applications, identified by CPE cpe:2.3:a:morgan:morgan:*:*:*:*:*:*:*:*. It formats and writes HTTP request data to a stream using configurable log tokens - named placeholders such as :remote-user, :url, and :referrer - whose values are drawn from the incoming request and may be entirely attacker-controlled. An internal helper function is responsible for escaping these token values before they are written to the log stream. Prior to 1.12.0, this helper was extended by CVE-2026-5078 to neutralize ASCII control characters (e.g., CR, LF), but the fix was incomplete: it did not account for Unicode line-terminating code points U+0085, U+2028, and U+2029. These characters are treated as line boundaries by many JavaScript-native runtimes and log processing systems, making them functionally equivalent to newlines in downstream processing despite being invisible to ASCII-only sanitizers. The root cause is CWE-117 (Improper Output Neutralization for Logs) - specifically, incomplete allowlist-based escaping that fails to cover the full Unicode line-boundary category.

Know when Morgan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (openjs) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 5.3 MEDIUM

Network-reachable via any HTTP request; no authentication required since Basic auth username is attacker-supplied without credentials; impact is solely log record integrity, no confidentiality or availability effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.3 MEDIUM

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Aug 28, 2026 - 17:02 EUVD
CVE Published
Aug 28, 2026 - 13:41 cve.org
MEDIUM 5.3

DescriptionCVE.org

morgan is an HTTP request logger middleware for Node.js. In versions prior to 1.12.0, the internal helper that escapes log token values did not neutralize the Unicode line separator characters U+0085 (Next Line), U+2028 (Line Separator), and U+2029 (Paragraph Separator). An unauthenticated remote client can place these characters in an attacker-controlled log token, for example a Basic auth username surfaced through the remote-user token, so that Unicode-aware downstream log processing splits a single request log into multiple logical records. This is a log forging issue (CWE-117) and an incomplete-fix follow-up to CVE-2026-5078, which only addressed ASCII control characters. The issue is fixed in morgan 1.12.0, which extends the escaping set to cover these Unicode line separators. Upgrade to morgan 1.12.0 to remediate.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
High
de facto standard HTTP request logger for Node.js/Express applications
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 12 Not-Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.4 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy