CVE-2026-107272 Gophish through 0.12.1 XSS via Unescaped SMTP Server Error Messages

Low 2.3 Published Updated

Attackers can inject scripts via SMTP error messages to steal API keys when administrators view campaign results or test emails.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-107272?

CVE-2026-107272 is a low-severity cross-site scripting vulnerability in gophish, published on 7 Oct 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2026-107272?

How do I fix CVE-2026-107272?

No fix has been published for CVE-2026-107272 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2026-107272 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-107272 exists.

Sources

Also known as GHSA-2424-98jr-qcjq.

Is CVE-2026-107272 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free