CVE-2022-40680
FortiOS vulnerability analysis and mitigation

Overview

A stored cross-site scripting (XSS) vulnerability identified as CVE-2022-40680 was discovered in Fortinet FortiOS versions 6.0.7 - 6.0.15, 6.2.2 - 6.2.12, 6.4.0 - 6.4.9, and 7.0.0 - 7.0.3. The vulnerability was disclosed on December 6, 2022, and involves improper neutralization of input during web page generation that could allow privileged attackers to execute unauthorized code or commands through malicious payloads in replacement messages (NVD, Fortinet Advisory).

Technical details

The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation) and has received varying CVSS severity ratings. The NVD assigned a CVSS v3.1 base score of 5.4 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N, while Fortinet assessed it with a CVSS v3.1 base score of 4.0 (Medium) with vector CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability allows privileged attackers to execute unauthorized code or commands by storing malicious payloads in replacement messages, potentially compromising the security of affected FortiOS systems (NVD).

Exploitability

The vulnerability requires a privileged attacker and user interaction to exploit. The attack complexity is rated as low by NVD but high by Fortinet, indicating some difficulty in successful exploitation (NVD).

Mitigation and workarounds

Fortinet has addressed this vulnerability in updated versions of FortiOS. Users are advised to upgrade to versions newer than those affected (6.0.15, 6.2.12, 6.4.9, and 7.0.3) to mitigate the risk (Fortinet Advisory).

Additional resources


SourceThis report was generated using AI

Related FortiOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84393HIGH8.1
  • FortiOS logoFortiOS
  • cpe:2.3:a:fortinet:fortiproxy
NoYesSep 08, 2026
CVE-2026-71407HIGH8.1
  • FortiOS logoFortiOS
  • cpe:2.3:a:fortinet:fortiproxy
NoYesAug 12, 2026
CVE-2026-71408MEDIUM5.3
  • FortiOS logoFortiOS
  • cpe:2.3:o:fortinet:fortios
NoYesAug 12, 2026
CVE-2026-70466MEDIUM5.3
  • FortiOS logoFortiOS
  • cpe:2.3:a:fortinet:fortiweb
NoYesAug 12, 2026
CVE-2026-84392LOW2.7
  • FortiOS logoFortiOS
  • cpe:2.3:a:fortinet:fortiproxy
NoYesSep 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management