CVE-2019-16146 Gophish XSS Vulnerability

Medium 4.8 Published Updated

Attackers can inject malicious scripts via usernames in Gophish, potentially leading to session hijacking or code execution.

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

What is CVE-2019-16146?

CVE-2019-16146 is a medium-severity cross-site scripting vulnerability in n/a, published on 9 Sep 2019. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Gophish through 0.8.0 allows XSS via a username.

Weakness: CWE-79

Which versions are affected by CVE-2019-16146?

3 open source packages ship an affected version, including github.com/gophish/gophish. It affects 1 product.

PackageAffectedFixed in
github.com/gophish/gophish GoAll versions0.9.0
github.com/gophish/gophish GoAll versions0.9.0
github.com/gophish/gophish GoAll versions0.9.0

Products include Getgophish Gophish.

How do I fix CVE-2019-16146?

Upgrade github.com/gophish/gophish to 0.9.0 or later.

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-2019-16146 being exploited?

There is no known exploitation of CVE-2019-16146 in the wild and no public exploit code.

Sources

Also known as GHSA-9h9f-9q8g-6764, GO-2023-1936.

Is CVE-2019-16146 in your software?

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

Check your SBOMs for free