CVE-2019-16151 Cross-site scripting in FortiOS

Medium 4.7 Published Updated

Remote attackers can execute JavaScript or redirect users via crafted Host headers when web filtering and category override are enabled.

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-2019-16151?

CVE-2019-16151 is a medium-severity cross-site scripting vulnerability in Fortinet Fortios, published on 21 Mar 2025. 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

An improper neutralization of input during web page generation vulnerability [CWE-79] in FortiOS 6.4.1 and below, 6.2.9 and below may allow a remote unauthenticated attacker to either redirect users to malicious websites via a crafted "Host" header or to execute JavaScript code in the victim's browser context. This happens when the FortiGate has web filtering and category override enabled/configured.

Weakness: CWE-79

Which versions are affected by CVE-2019-16151?

It affects 1 product.

Products include Fortinet Fortios.

How do I fix CVE-2019-16151?

No fix has been published for CVE-2019-16151 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-2019-16151 being exploited?

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

All Fortinet Fortios vulnerabilities

Sources

Also known as GHSA-c55x-8r3h-3586.

Is CVE-2019-16151 in your software?

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

Check your SBOMs for free