Skip to main content

Fortinet FortiOS CVE-2025-31366

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-14 psirt@fortinet.com
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed FortiOS/FortiProxy management interface
  2. Delivery
    Craft reflected XSS payload in HTTP request parameter
  3. Exploit
    Deliver malicious URL to privileged user via phishing
  4. Execution
    Victim clicks link, browser loads management portal
  5. Persist
    Injected script executes in victim's authenticated session
  6. Impact
    Exfiltrate session token or perform unauthorized admin action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attack requires user interaction: a legitimate user with access to the FortiOS, FortiProxy, or FortiSASE web management interface must click or load a specifically crafted HTTP request link supplied by the attacker (UI:R from CVSS). The attacker itself requires no authentication (PR:N from CVSS vector), making the initial delivery step low-barrier, but the victim must have an active or initiatable browser session to the management portal for the XSS payload to yield meaningful impact. High attack complexity (AC:H) implies additional conditions beyond attacker control - potentially specific browser behavior, session state, or environmental timing - must align for exploitation to succeed. Exploitation is limited to environments where the web management interface is accessible from a network path reachable by the attacker, whether internet-facing or reachable via an internal phishing scenario. Deployments that restrict management plane access to dedicated out-of-band networks or jump hosts reduce the viable attacker pool substantially.

Impact

The 4.7 Medium CVSS score reflects meaningful mitigating factors that reduce real-world exploitability below what the network attack vector alone might suggest. AC:H (High Complexity) indicates that exploitation is not straightforward and may require specific timing, configuration, or environmental conditions to trigger the reflection reliably. UI:R (User Interaction Required) means the attacker cannot exploit this passively - a legitimate user must be socially engineered into clicking a crafted URL. These factors together significantly limit the attack surface compared to a stored XSS or one requiring no user interaction. No EPSS score was provided in the input data, so probabilistic exploitation likelihood cannot be quantified. No CISA KEV listing and no public exploit code have been identified, consistent with the medium-complexity, user-interaction-dependent nature of the flaw. However, the breadth of affected versions (FortiOS 6.4 through 7.6.x, all FortiProxy 7.x, FortiSASE) means the organizational exposure pool is large. The Siemens SSA-864900 advisory signals downstream supply-chain risk for organizations running Siemens industrial or OT systems that embed Fortinet components - these environments may have slower patch cycles, elevating practical risk there.

Exploit ScenarioDerived

An attacker crafts a malicious URL targeting the vulnerable FortiOS or FortiProxy web management interface, embedding a reflected XSS payload in a parameter that the server echoes back unsanitized. The attacker delivers this link via phishing email or social engineering to a target - typically a network administrator with an active authenticated session to the Fortinet management portal. When the victim clicks the link, the injected script executes in their browser under the management portal's origin, potentially stealing session tokens, redirecting authentication flows, or performing administrative actions on the attacker's behalf. No public exploit code has been identified at time of analysis, but the attack technique is well-understood and widely practiced.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 09, 2026

Reflected cross-site scripting (XSS) in FortiOS, FortiProxy, and FortiSASE allows unauthenticated remote attackers to inject and execute malicious scripts in a victim's browser by tricking them into clicking a crafted HTTP request link. The vulnerability spans a wide range of FortiOS versions from 6.4 through 7.6.3 and all FortiProxy 7.x branches, meaning a large installed base of Fortinet network security appliances is affected. A Siemens CERT advisory (SSA-864900) indicates this vulnerability also affects Siemens products that embed Fortinet components, broadening organizational impact. No public exploit or CISA KEV listing has been identified at time of analysis.

RemediationAI

Consult the Fortinet PSIRT advisory FG-IR-24-542 at https://fortiguard.fortinet.com/psirt/FG-IR-24-542 for the exact patched versions; the advisory is the authoritative source for fixed release numbers, which are not independently specified in the available data - citing invented version numbers is avoided here. Organizations running Siemens products that embed Fortinet components should additionally review Siemens CERT advisory SSA-864900 for Siemens-specific guidance and patch timelines, which may differ from Fortinet's direct-release schedule. As a compensating control where patching is delayed, restrict access to the FortiOS and FortiProxy web management interfaces to trusted, internal IP ranges only using administrative access control lists, reducing the population of users who could be targeted through social engineering. Additionally, enforce Content Security Policy (CSP) headers if your deployment supports custom response header injection upstream (e.g., via a WAF), which can limit the impact of script injection even if triggered. Note that these compensating controls reduce but do not eliminate risk - patching remains the only definitive remediation.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-79 (Improper Neutralization of Input During Web Page Generation) describes a failure to sanitize attacker-supplied input before it is reflected back in a dynamically generated web page. In this case, FortiOS, FortiProxy, and FortiSASE web management interfaces do not adequately encode or strip attacker-controlled content from HTTP responses, allowing injected JavaScript or HTML to execute in the victim's browser context. CPE strings confirm affected products: cpe:2.3:o:fortinet:fortios, cpe:2.3:a:fortinet:fortiproxy, and cpe:2.3:a:fortinet:fortisase (version 25.2.a and 25.3.40 in both feature and mature tracks). The CVSS Scope=Changed (S:C) designation confirms this is a cross-site context: the exploit's impact extends beyond the vulnerable server to the victim's browser session, which is characteristic of reflected XSS enabling session token theft, credential phishing, or unauthorized actions on behalf of the victim.

Know when Fortios gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Jul 08, 2026 - 13:22 NVD
4.7 (MEDIUM) 6.1 (MEDIUM)
CVE Published
Oct 14, 2025 - 16:15 nvd
MEDIUM 4.7

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)NVD

cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*
cpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*
cpe:2.3:a:fortinet:fortisase:25.3.40:*:*:*:feature:*:*:*
cpe:2.3:a:fortinet:fortisase:25.3.40:*:*:*:mature:*:*:*
CVE-2022-40684 CRITICAL POC
9.8 Oct 18

An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 an

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2024-21762 CRITICAL POC
9.8 Feb 09

A out-of-bounds write in Fortinet FortiOS versions 7.4.0 through 7.4.2, 7.2.0 through 7.2.6, 7.0.0 through 7.0.13, 6.4.0

CVE-2023-27997 CRITICAL
9.8 Jun 13

A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, versi

CVE-2020-12812 CRITICAL
9.8 Jul 24

FortiOS SSL-VPN contains an improper authentication vulnerability that allows users to bypass two-factor authentication

CVE-2016-1909 CRITICAL POC
9.8 Jan 15

Fortinet FortiAnalyzer before 5.0.12 and 5.2.x before 5.2.5; FortiSwitch 3.3.x before 3.3.3; FortiCache 3.0.x before 3.0

CVE-2016-6909 CRITICAL POC
9.8 Aug 24

Buffer overflow in the Cookie parser in Fortinet FortiOS 4.x before 4.1.11, 4.2.x before 4.2.13, and 4.3.x before 4.3.9

CVE-2025-25249 CRITICAL POC
9.8 Jan 13

Remote code execution in Fortinet FortiOS (6.4 through 7.6.3) and FortiSwitchManager (7.0.x/7.2.x) lets an attacker run

CVE-2025-61624 MEDIUM POC
6.5 Apr 14

Path traversal vulnerability in Fortinet FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager allows authenticated admi

CVE-2015-1880 MEDIUM POC
4.3 May 12

Cross-site scripting (XSS) vulnerability in the sslvpn login page in Fortinet FortiOS 5.2.x before 5.2.3 allows remote a

CVE-2025-24472 HIGH
8.1 Feb 11

FortiOS and FortiProxy contain an authentication bypass allowing unauthenticated attackers with knowledge of upstream/do

CVE-2025-68686 MEDIUM POC
5.9 Feb 10

An Exposure of Sensitive Information to an Unauthorized Actor vulnerability [CWE-200] vulnerability in Fortinet FortiOS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy