CVE-2022-40680 Cross-site scripting in FortiOS

Low 3.8 Published Updated

Privileged attackers can execute unauthorized code via stored XSS in FortiOS replacement messages, requiring an upgrade to mitigate.

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
None listed

What is CVE-2022-40680?

CVE-2022-40680 is a low-severity cross-site scripting vulnerability in Fortinet Fortios, published on 6 Dec 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

A improper neutralization of input during web page generation ('cross-site scripting') in Fortinet FortiOS 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 allows a privileged attacker to execute unauthorized code or commands via storing malicious payloads in replacement messages.

Weakness: CWE-79

Which versions are affected by CVE-2022-40680?

It affects 1 product.

Products include Fortinet Fortios.

How do I fix CVE-2022-40680?

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

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

All Fortinet Fortios vulnerabilities

Sources

Also known as GHSA-4gwx-h6rx-fcw3.

Is CVE-2022-40680 in your software?

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

Check your SBOMs for free