CVE-2021-22122: Reflected XSS in FortiWeb GUI API endpoints
- Vendor
- Fortinet
CVE-2021-22122 comprises multiple reflected cross-site scripting vulnerabilities in the FortiWeb GUI affecting versions 6.3.0 through 6.3.7 and versions before 6.2.4. Improper neutralization of input during web page generation allows an unauthenticated remote attacker to inject malicious payloads through vulnerable API endpoints, potentially executing attacker-controlled script in a user's browser.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation may execute attacker-controlled script in a user's browser. The vulnerability's impact is described as execution of unauthorized code or commands; server-side execution and specific confidentiality or availability effects are not established.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the FortiWeb GUI interface to trusted networks and users only. Employ web application firewalls or input validation mechanisms to reduce the risk of XSS exploitation until the system can be patched.
Remediation
Patch, then assume compromise.
Upgrade affected FortiWeb 6.3 deployments to version 6.3.8 or later, and affected FortiWeb 6.2 deployments to version 6.2.4 or later.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2021-22122 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-22122?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-22122.
- Is there a patch for CVE-2021-22122?
- Upgrade affected FortiWeb 6.3 deployments to version 6.3.8 or later, and affected FortiWeb 6.2 deployments to version 6.2.4 or later.
- What products are affected by CVE-2021-22122?
- Fortinet Fortiweb.
- How severe is CVE-2021-22122?
- CVE-2021-22122 has a CVSS v3.1 score of 6.1 (Medium) and an EPSS score of 10.5% (96th percentile) as of Oct 16, 2026.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.