CVE-2022-50908
Published: 13 January 2026
Summary
CVE-2022-50908 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Shodan (inferred from references). Its CVSS base score is 5.1 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 8.9th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-15 (Information Output Filtering).
Deeper analysis
CVE-2022-50908 is a stored cross-site scripting (XSS) vulnerability, classified under CWE-79, affecting MailHog version 1.0.1. The flaw enables attackers to inject malicious scripts via email attachments processed by the MailHog email testing server.
Attackers with network access can exploit this by sending crafted emails containing XSS payloads to a vulnerable MailHog instance. No privileges or user interaction are required per the CVSS v3.1 vector (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N, score 7.2), allowing execution of arbitrary API calls upon payload activation, such as message deletion and browser manipulation.
References include the MailHog GitHub repository, an Exploit-DB entry (50971) detailing the exploit, Shodan queries for exposed MailHog instances, and a Vulncheck advisory on the stored XSS vulnerability, which security practitioners should consult for additional guidance on detection and response.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2026-2618
Vulnerability details
Mailhog 1.0.1 contains a stored cross-site scripting vulnerability that allows attackers to inject malicious scripts through email attachments. Attackers can send crafted emails with XSS payloads to execute arbitrary API calls, including message deletion and browser manipulation.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Stored XSS in public-facing MailHog server directly enables exploitation of the vulnerable application over the network with no auth required.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly requires validation and sanitization of untrusted input (email attachments) to block XSS payload injection before storage or execution.
Requires output filtering/encoding of stored email content to neutralize malicious scripts before they reach the browser or trigger API calls.
Provides mechanisms to detect and block malicious code (XSS payloads) delivered via email attachments before they are processed or rendered.