CVE-2025-31366: An Improper Neutralization of Input During Web Page Generation vulnerability [CWE-79] vulnerability in Fort...
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.
Security readout for executives and security teams
Plain-English summary
This is a reflected cross-site scripting issue in Fortinet FortiOS, FortiProxy, and FortiSASE. An unauthenticated attacker could craft a request that runs script in a user's browser if the user interacts with it. The business risk is targeted phishing, session misuse, or unauthorized actions in sensitive security-management contexts.
Executive priority
Treat as a moderate-priority remediation item. It is not marked as actively exploited in the provided sources, but it affects security infrastructure and could support targeted social engineering against administrators or users.
Technical view
CVE-2025-31366 is CWE-79 improper input neutralization during web page generation. The listed CVSS is 4.5, with network access, high complexity, no privileges required, user interaction required, changed scope, and low confidentiality and integrity impact. Availability impact is not indicated.
Likely exposure
Organizations using affected FortiOS, FortiProxy, or FortiSASE versions are potentially exposed, especially where web interfaces are reachable by administrators or users. The source bundle lists broad affected FortiOS and FortiProxy release lines plus FortiSASE 25.2.a.
Exploitation context
The bundle does not show CISA KEV listing or confirmed active exploitation. Exploitation requires a crafted HTTP request and user interaction, consistent with reflected XSS. Public exploit maturity is listed as proof-of-concept in the CVSS temporal vector, but no exploit details are provided here.
Researcher notes
Evidence supports reflected XSS, not remote code execution or authentication bypass. The affected-product list is broad, but fixed versions are not enumerated in the supplied bundle. Use Fortinet and Siemens advisories for final version mapping.
Mitigation direction
Review Fortinet FG-IR-24-542 for fixed versions and official upgrade guidance.
Inventory FortiOS, FortiProxy, and FortiSASE versions against the affected ranges.
Prioritize remediation for internet-reachable or administrator-facing web interfaces.
Follow Siemens SSA-864900 where Siemens-managed or Siemens-integrated deployments apply.
Validation and detection
Confirm deployed Fortinet versions match or exceed Fortinet's fixed releases.
Check whether affected web interfaces are reachable from untrusted networks.
Review web access logs for unusual crafted requests around user-facing pages.
Verify compensating access controls remain in place until upgrades are complete.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-79: User-session and phishing behavior lookup
Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-79 · source CWE mapping
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.