# CVE-2025-31366: Improper Neutralization of Input During Web Page Generation in FortiOS, FortiProxy and others

- Vendor: Fortinet, FortiOS, FortiProxy, FortiSASE
- Severity: MEDIUM (CVSS 3.1 4.5)
- Exploited (CISA KEV): not listed
- EPSS: 0.4% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-24-542, https://fortiguard.fortinet.com/psirt/FG-IR-24-542
- Published: 2025-10-14; updated: 2026-07-08
- Page: https://patchtonight.com/cve/CVE-2025-31366/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiSASE 25.2 | See the advisory |
| FortiOS 7.6.0 to 7.6.2 | 7.6.4 or later |
| FortiOS 7.4.0 to 7.4.7 | 7.4.9 or later |
| FortiOS 7.2.0 to 7.2.13 | Upgrade past 7.2.13; see the advisory |
| FortiOS 7.0.0 to 7.0.19 | Upgrade past 7.0.19; see the advisory |
| FortiOS 6.4.0 to 6.4.16 | Upgrade past 6.4.16; see the advisory |
| FortiProxy 7.6.0 to 7.6.3 | 7.6.4 or later |
| FortiProxy 7.4.0 to 7.4.8 | Upgrade past 7.4.8; see the advisory |
| FortiProxy 7.2.0 to 7.2.16 | Upgrade past 7.2.16; see the advisory |
| FortiProxy 7.0.0 to 7.0.23 | Upgrade past 7.0.23; see the advisory |

## The vendor's description

An Improper Neutralization of Input During Web Page Generation vulnerability [CWE-79] vulnerability in Fortinet FortiOS 7.6.0 through 7.6.3, FortiOS 7.4.0 through 7.4.8, FortiOS 7.2 all versions, FortiOS 7.0 all versions, FortiOS 6.4 all versions, FortiProxy 7.6.0 through 7.6.3, FortiProxy 7.4 all versions, FortiProxy 7.2 all versions, FortiProxy 7.0 all versions, FortiSASE 25.2.a may allow an unauthenticated attacker to perform a reflected cross site scripting (XSS) via crafted HTTP requests.

## Sources

- [Fortinet advisory](https://fortiguard.fortinet.com/psirt/FG-IR-24-542)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
