CVE-2026-121551

PostfixAdmin through 4.0.5 Stored XSS via TOTP Exception Description

Published Nov 3, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
PostfixAdmin through 4.0.5 contains a stored cross-site scripting vulnerability that allows authenticated mailbox users to inject script by creating a TOTP exception with an unescaped description. When a global administrator views totp-exceptions.php, the script runs in the admin session and can issue authenticated admin requests using the page's CSRF token.

Analysis

AI-generated

Technical impact

The vulnerability is a stored cross‑site scripting flaw located in PostfixAdmin up to version 4.0.5. The flaw resides in the handling of the TOTP exception description field. An authenticated mailbox user can create a TOTP exception containing an unescaped script. When a global administrator later views totp‑exceptions.php, the malicious script runs within the administrator’s browser session. Because the page already contains a valid CSRF token, the script can issue requests that are authenticated as the administrator, allowing the attacker to perform privileged actions such as modifying user settings or creating new accounts. The primary impact is privilege escalation via client‑side script execution and CSRF exploitation.

Affected Systems

Affected systems are installations of PostfixAdmin through version 4.0.5. The product is provided by the PostfixAdmin Project and is commonly deployed on Linux servers for managing mailboxes. All releases up to and including 4.0.5 that include the totp‑exceptions.php and totp‑exceptions.tpl templates are vulnerable.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate risk. The EPSS score is not available, so the likelihood of exploitation cannot be quantified, but the flaw requires an attacker to possess a legitimate mailbox account to inject the malicious description. After injection, any subsequent administrator who visits the TOTP exceptions page will trigger the script, giving the attacker a window to execute authenticated requests. The vulnerability is not listed in the CISA KEV catalog, yet exposure to privileged accounts makes it a noteworthy threat for environments relying on PostfixAdmin for mailbox administration.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to PostfixAdmin 4.0.6 or later where the input is properly escaped.
  • If an immediate update is not possible, limit the creation of TOTP exceptions to super‑admin users and manually review the exception descriptions for script tags.
  • Apply a Content‑Security‑Policy that disallows inline scripts on the admin web interface to reduce the impact of any remaining unescaped data, and monitor the admin logs for unexpected POST requests originating from the totp‑exceptions page.

Generated by OpenCVE AI on November 3, 2026 at 17:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description PostfixAdmin through 4.0.5 contains a stored cross-site scripting vulnerability that allows authenticated mailbox users to inject script by creating a TOTP exception with an unescaped description. When a global administrator views totp-exceptions.php, the script runs in the admin session and can issue authenticated admin requests using the page's CSRF token.
Title PostfixAdmin through 4.0.5 Stored XSS via TOTP Exception Description
First Time appeared Postfixadmin Project
Postfixadmin Project postfixadmin
Weaknesses CWE-79
CPEs cpe:2.3:a:postfixadmin_project:postfixadmin:*:*:*:*:*:*:*:*
Vendors & Products Postfixadmin Project
Postfixadmin Project postfixadmin
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 3, 2026, 6:27 PM
Reserved
Nov 3, 2026, 2:46 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 4:17 PM
Modified
Nov 3, 2026, 7:18 PM