CVE-2026-107272

Gophish through 0.12.1 XSS via Unescaped SMTP Server Error Messages

Published Oct 7, 2026 CVSS 4.0 · 2.3 Low EPSS < 1% KEV · Not listed
Description
Gophish through 0.12.1 contains stored and reflected cross-site scripting vulnerabilities that allow attackers to inject script by returning malicious SMTP server error messages. Attackers controlling or intercepting a sending profile's SMTP server can execute script when administrators view campaign results or send test emails, stealing API keys.

Analysis

AI-generated

Technical impact

Gophish up to 0.12.1 contains stored and reflected cross‑site scripting vulnerabilities that let an attacker insert arbitrary script code by exploiting unescaped SMTP server error messages. The injected script runs in the browser context when an administrator views campaign results or sends test emails, enabling theft of sensitive data such as API keys.

Affected Systems

The vulnerability affects Gophish installations through version 0.12.1. Administrators using any SMTP server for sending profiles are at risk unless they are running a later, patched release.

Risk and Exploitability

The CVSS score of 2.3 indicates low overall severity, and no EPSS data is available. The attack requires access or control over the SMTP server that Gophish communicates with, or the ability to intercept the SMTP traffic. Once the malicious SMTP error message is delivered, the victim must load a page that reflects the error, after which the injected script executes in the admin user's browser. As the vulnerability exists in a stored form, any administrator who views the affected data can be compromised. The risk is limited to the attacker’s control over the SMTP channel and the presence of an interactive admin session, so it is not a blind remote exploit.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gophish to the latest release (≥0.12.2) once available.
  • Limit SMTP server configuration changes to trusted administrators and use secure, signed connections.
  • If an upgrade is not possible, sanitize or disable SMTP server error message display in campaign result pages to prevent script execution.

Generated by OpenCVE AI on October 7, 2026 at 18:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Gophish through 0.12.1 contains stored and reflected cross-site scripting vulnerabilities that allow attackers to inject script by returning malicious SMTP server error messages. Attackers controlling or intercepting a sending profile's SMTP server can execute script when administrators view campaign results or send test emails, stealing API keys.
Title Gophish through 0.12.1 XSS via Unescaped SMTP Server Error Messages
First Time appeared Getgophish
Getgophish gophish
Weaknesses CWE-79
CPEs cpe:2.3:a:getgophish:gophish:*:*:*:*:*:*:*:*
Vendors & Products Getgophish
Getgophish gophish
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 2.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 7, 2026, 4:08 PM
Reserved
Oct 7, 2026, 3:34 PM
Status
Deferred
Published
Oct 7, 2026, 4:17 PM
Modified
Oct 7, 2026, 5:16 PM