Fortinet FortiOS
CVE-2025-31366
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed FortiOS/FortiProxy management interface
-
DeliveryCraft reflected XSS payload in HTTP request parameter
-
ExploitDeliver malicious URL to privileged user via phishing
-
ExecutionVictim clicks link, browser loads management portal
-
PersistInjected script executes in victim's authenticated session
-
ImpactExfiltrate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
Lifecycle Timeline
2DescriptionNVD
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
An authentication bypass using an alternate path or channel [CWE-288] in Fortinet FortiOS version 7.2.0 through 7.2.1 an
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
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
A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, versi
FortiOS SSL-VPN contains an improper authentication vulnerability that allows users to bypass two-factor authentication
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
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
Remote code execution in Fortinet FortiOS (6.4 through 7.6.3) and FortiSwitchManager (7.0.x/7.2.x) lets an attacker run
Path traversal vulnerability in Fortinet FortiOS, FortiProxy, FortiPAM, and FortiSwitchManager allows authenticated admi
Cross-site scripting (XSS) vulnerability in the sslvpn login page in Fortinet FortiOS 5.2.x before 5.2.3 allows remote a
FortiOS and FortiProxy contain an authentication bypass allowing unauthenticated attackers with knowledge of upstream/do
An Exposure of Sensitive Information to an Unauthorized Actor vulnerability [CWE-200] vulnerability in Fortinet FortiOS
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB