Vulnerable Library - morgan-1.10.1.tgz
HTTP request logger middleware for node.js
Library home page: https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz
Path to dependency file: /tutorials/video-javascript-debugging/project/package.json
Path to vulnerable library: /tutorials/video-javascript-debugging/project/package.json,/tutorials/video-javascript-multiparty_archiving/project/package.json,/tutorials/video_learning_server-node-deploy/project/package.json,/tutorials/video-javascript-archive_layouts/project/package.json,/tutorials/video-javascript-signaling/project/package.json
Found in HEAD commit: 4e2cf9adce70dc70d3b4bb66d02e43c4a1afa182
Vulnerabilities
| Vulnerability |
Severity |
CVSS |
Dependency |
Type |
Fixed in (morgan version) |
Remediation Possible** |
| CVE-2026-5078 |
Medium |
5.3 |
morgan-1.10.1.tgz |
Direct |
1.11.0 |
✅ |
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
CVE-2026-5078
Vulnerable Library - morgan-1.10.1.tgz
HTTP request logger middleware for node.js
Library home page: https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz
Path to dependency file: /tutorials/video-javascript-debugging/project/package.json
Path to vulnerable library: /tutorials/video-javascript-debugging/project/package.json,/tutorials/video-javascript-multiparty_archiving/project/package.json,/tutorials/video_learning_server-node-deploy/project/package.json,/tutorials/video-javascript-archive_layouts/project/package.json,/tutorials/video-javascript-signaling/project/package.json
Dependency Hierarchy:
- ❌ morgan-1.10.1.tgz (Vulnerable Library)
Found in HEAD commit: 4e2cf9adce70dc70d3b4bb66d02e43c4a1afa182
Found in base branch: main
Vulnerability Details
Impact: The morgan logging middleware's :remote-user token extracts the Basic auth username from the Authorization request header and writes it to the log stream without neutralizing control characters. An unauthenticated attacker can send a crafted Authorization Basic header containing CR or LF bytes to inject forged log lines, breaking the one-request-per-line structure of access logs and enabling log forgery against downstream log consumers. The built-in combined, common, default, and short formats are affected, as well as any custom format that references :remote-user. Affected versions: morgan 1.2.0 through 1.10.1. Patches: upgrade to morgan 1.11.0, which neutralizes control characters in the :remote-user token output. Workarounds: use a custom format string that does not include :remote-user.
Publish Date: 2026-06-03
URL: CVE-2026-5078
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: Low
- Availability Impact: None
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Origin: GHSA-4vj7-5mj6-jm8m
Release Date: 2026-06-03
Fix Resolution: 1.11.0
⛑️ Automatic Remediation will be attempted for this issue.
⛑️Automatic Remediation will be attempted for this issue.
HTTP request logger middleware for node.js
Library home page: https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz
Path to dependency file: /tutorials/video-javascript-debugging/project/package.json
Path to vulnerable library: /tutorials/video-javascript-debugging/project/package.json,/tutorials/video-javascript-multiparty_archiving/project/package.json,/tutorials/video_learning_server-node-deploy/project/package.json,/tutorials/video-javascript-archive_layouts/project/package.json,/tutorials/video-javascript-signaling/project/package.json
Found in HEAD commit: 4e2cf9adce70dc70d3b4bb66d02e43c4a1afa182
Vulnerabilities
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
Vulnerable Library - morgan-1.10.1.tgz
HTTP request logger middleware for node.js
Library home page: https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz
Path to dependency file: /tutorials/video-javascript-debugging/project/package.json
Path to vulnerable library: /tutorials/video-javascript-debugging/project/package.json,/tutorials/video-javascript-multiparty_archiving/project/package.json,/tutorials/video_learning_server-node-deploy/project/package.json,/tutorials/video-javascript-archive_layouts/project/package.json,/tutorials/video-javascript-signaling/project/package.json
Dependency Hierarchy:
Found in HEAD commit: 4e2cf9adce70dc70d3b4bb66d02e43c4a1afa182
Found in base branch: main
Vulnerability Details
Impact: The morgan logging middleware's :remote-user token extracts the Basic auth username from the Authorization request header and writes it to the log stream without neutralizing control characters. An unauthenticated attacker can send a crafted Authorization Basic header containing CR or LF bytes to inject forged log lines, breaking the one-request-per-line structure of access logs and enabling log forgery against downstream log consumers. The built-in combined, common, default, and short formats are affected, as well as any custom format that references :remote-user. Affected versions: morgan 1.2.0 through 1.10.1. Patches: upgrade to morgan 1.11.0, which neutralizes control characters in the :remote-user token output. Workarounds: use a custom format string that does not include :remote-user.
Publish Date: 2026-06-03
URL: CVE-2026-5078
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: Low
- Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: GHSA-4vj7-5mj6-jm8m
Release Date: 2026-06-03
Fix Resolution: 1.11.0
⛑️ Automatic Remediation will be attempted for this issue.
⛑️Automatic Remediation will be attempted for this issue.