CVE-2021-22122 Cross-site scripting in Fortinet FortiWeb

Medium 6.1 Published Updated

Unauthenticated remote attackers can execute reflected cross-site scripting attacks via malicious payloads in FortiWeb GUI API endpoints.

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-2021-22122?

CVE-2021-22122 is a medium-severity cross-site scripting vulnerability in Fortinet Fortiweb, published on 8 Feb 2021. 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 in FortiWeb GUI interface 6.3.0 through 6.3.7 and version before 6.2.4 may allow an unauthenticated, remote attacker to perform a reflected cross site scripting attack (XSS) by injecting malicious payload in different vulnerable API end-points.

Weakness: CWE-79

Which versions are affected by CVE-2021-22122?

It affects 1 product.

Products include Fortinet Fortiweb.

How do I fix CVE-2021-22122?

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

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

Public exploit code: 1 Nuclei template.

All Fortinet Fortiweb vulnerabilities

Sources

Also known as GHSA-6xx4-8wj3-477v.

Is CVE-2021-22122 in your software?

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

Check your SBOMs for free