Summary
CVE-2026-126162 is an XML injection (blind XPath injection) vulnerability in Fortinet FortiMail. A remote, unauthenticated attacker may be able to execute unauthorized code or commands via a specially crafted request. It is rated High, with a CVSS v3.1 base score of 8.7.
Technical details
- Root cause: Improper neutralization of input in XML/XPath handling (blind XPath injection), as described in the CVE record. The record lists the weakness as CWE-91.
- Trigger conditions: A specially crafted request sent to a vulnerable FortiMail instance. No privileges or user interaction are required. The attack complexity is rated High.
- Attack vector: Network, by a remote unauthenticated attacker.
- Impact: Unauthorized code or command execution. The CVSS vector rates confidentiality and integrity impact as High, with changed scope.
Affected software
- FortiMail 8.0.0 through 8.0.1
- FortiMail 7.6.0 through 7.6.6
Severity
- CVSS v3.1 base score: 8.7 (High)
- Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
Mitigation and recommended actions
- Immediate: Upgrade to FortiMail 8.0.2 or later, or FortiMail 7.6.7 or later.
- See Fortinet PSIRT advisory FG-IR-26-214 for full vendor guidance.

