> CVE-2026-5078 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-06-03 08:16
MODIFIED
2026-06-03 08:16
CVSS_SCORE V3
5.3
EPSS (Prob. Exploit)
0.42%
Top 65.2%
DATA SOURCES:
NVD đź”— 2026-06-03 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-10-29

> DESCRIPTION

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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EXPLOITABILITY
3.9
IMPACT
1.4

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-117

> CWE DETAILED DESCRIPTIONS

CWE-117: Improper Output Neutralization for Logs - The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is written to a log file.

> RED HAT SECURITY ADVISORIES

Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
An update for Red Hat Hardened Images RPMs is now available.

> GITHUB SECURITY ADVISORY

GHSA-4vj7-5mj6-jm8m MODERATE

morgan vulnerable to Log Forging via unneutralized control characters in :remote-user

AFFECTED PACKAGES:
NPM / morgan
>= 1.2.0, <= 1.10.1
Fixed in: 1.11.0

> HISTORIQUE DES MODIFICATIONS

Première apparition
03/06/2026 08:16
Source: NVD
📊 ENRICHISSEMENT 01/07/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-117: Improper Output Neutralization for Logs - The product constructs a log message from external input, but it does not neutralize or incorrectly neutralizes special elements when the message is ...
Total des modifications: 1 Dernière mise à jour: 4 months ago

> REFERENCES

https://cna.openjsf.org/security-advisories.html
https://github.com/expressjs/morgan/security/advisories/GHSA-4vj7-5mj6-jm8m
« BACK_TO_HOME