---
id: CVE-2026-107272
title: >-
  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
summary: >-
  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 …
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N'
cwe:
  - CWE-79
vendor: gophish
product: gophish
affected:
  - gophish <= 0.12.1
published: '2026-10-07'
updated: '2026-10-07'
sourceUpdated: '2026-10-07T17:16:54.210'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107272'
references:
  - url: 'https://blog.ostorlab.co/gophish-0121-manual-review-agentic-deep-scan.html'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/gophish/gophish'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gophish/gophish/blob/b1648f0759c6d57ac989157c55d8b47c40254fe6/static/js/src/app/campaign_results.js#L422-L427
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gophish/gophish/blob/b1648f0759c6d57ac989157c55d8b47c40254fe6/static/js/src/app/campaigns.js#L110-L113
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/gophish-through-0.12.1-xss-via-unescaped-smtp-server-error-messages
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-07T16:08:18.169530Z'
ingestedAt: '2026-10-07T16:38:22.228Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
