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.
Published: 2026-10-07
Score: 2.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Stored and reflected cross‑site scripting that allows injection of malicious scripts via SMTP error messages, potentially enabling API key theft
Action: Patch promptly
AI Analysis

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.

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

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 yet.

History

Wed, 07 Oct 2026 16:00:00 +0000

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'}


Subscriptions

Getgophish Gophish
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-07T16:08:29.081Z

Reserved: 2026-10-07T15:34:11.714Z

Link: CVE-2026-107272

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-07T16:17:46.853

Modified: 2026-10-07T17:16:54.210

Link: CVE-2026-107272

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-07T18:30:14Z

Weaknesses
  • CWE-79

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