Home / Fortinet / FortiSASE / CVE-2025-31366
CVE-2025-31366: is it exploited, and which versions of Fortinet FortiSASE are affected and fixed?
CVE-2025-31366 is a cross-site scripting (XSS) vulnerability in Fortinet FortiSASE. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: FortiSASE 25.2.a, FortiOS from 7.6.0 through 7.6.2, FortiOS from 7.4.0 through 7.4.7 and 7 more (CVE record by fortinet). Fixed in 7.4.9 and 7.6.4 (NVD). Severity: Medium (4.5, CVSS 3.1, from fortinet).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:16 UTC.
What is CVE-2025-31366?
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.
From the CVE record by fortinet, last updated October 15, 2026, 01:06 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Fortinet | FortiSASE | 25.2.a | |
| Fortinet | FortiOS | from 7.6.0 through 7.6.2 from 7.4.0 through 7.4.7 from 7.2.0 through 7.2.13 from 7.0.0 through 7.0.19 from 6.4.0 through 6.4.16 | |
| Fortinet | FortiProxy | from 7.6.0 through 7.6.3 from 7.4.0 through 7.4.8 from 7.2.0 through 7.2.16 from 7.0.0 through 7.0.23 |
As the CVE record by fortinet states it, last updated October 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| fortinet | fortios | from 6.4.0 before 7.4.9 | operating system |
| fortinet | fortios | from 7.6.0 before 7.6.4 | operating system |
| fortinet | fortiproxy | from 7.0.0 before 7.6.4 | application |
| fortinet | fortisase | 25.3.40 | application |
NVD analysis (status Modified), last modified October 18, 2026, 21:10 UTC.
How severe is CVE-2025-31366?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P/RL:O/RC:C | fortinet |
| Medium 6.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-31366 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, October 14, 2025)
- EPSS
- 0.42% probability of exploitation activity in the next 30 days, percentile 38.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-79 Improper Neutralization of Input During Web Page Generation
How do I fix it? (from the CVE record)
Upgrade to FortiOS version 7.6.4 or above Upgrade to FortiOS version 7.4.9 or above Fortinet remediated this issue in FortiSASE version 25.3.b and hence customers do not need to perform any action. Upgrade to FortiProxy version 7.6.4 or above
Where are the vendor advisories and references?
- https://fortiguard.fortinet.com/psirt/FG-IR-24-542
- https://cert-portal.siemens.com/productcert/html/ssa-864900.html
When was it published, and where is the official record?
- Reserved
- March 28, 2025
- Published
- October 14, 2025, 15:22 UTC
- CVE record updated
- October 15, 2026, 01:06 UTC by fortinet
- NVD
- Modified, last modified October 18, 2026, 21:10 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:16 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect FortiSASE?
- Dec 9, 2025CVE-2024-47570 Fortinet FortiSASE: sensitive information written to log files
- Nov 18, 2025CVE-2025-58413 Fortinet FortiOS: stack buffer overflow
- Oct 14, 2025CVE-2025-47890 Fortinet FortiOS: open redirect
- Jun 10, 2025CVE-2025-25250 Fortinet FortiOS: information disclosure
- Mar 12, 2024CVE-2023-42789 Fortinet FortiProxy: out-of-bounds write (memory corruption)
Questions about CVE-2025-31366
Is CVE-2025-31366 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 0.42% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Fortinet FortiSASE are affected by CVE-2025-31366?
FortiSASE 25.2.a, FortiOS from 7.6.0 through 7.6.2, FortiOS from 7.4.0 through 7.4.7, FortiOS from 7.2.0 through 7.2.13, FortiOS from 7.0.0 through 7.0.19, FortiOS from 6.4.0 through 6.4.16 and 4 more, per the CVE record by fortinet. The tables above give every range the sources list.
Which version fixes CVE-2025-31366?
7.4.9 and 7.6.4, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-31366?
Medium (4.5, CVSS 3.1, from fortinet). The severity table above shows each score with its source.
Where is the official record of CVE-2025-31366?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.