---
id: CVE-2026-121551
title: PostfixAdmin through 4.0.5 Stored XSS via TOTP Exception Description
summary: >-
  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-e…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-79
vendor: postfixadmin
product: postfixadmin
affected:
  - postfixadmin <= 4.0.5
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-03T17:21:11.734226Z'
published: '2026-11-03'
updated: '2026-11-03'
sourceUpdated: '2026-11-03T18:27:55.973Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-121551'
references:
  - url: 'https://github.com/postfixadmin/postfixadmin/issues/1185'
    label: 'GitHub Issue #1185'
  - url: 'https://github.com/postfixadmin/postfixadmin'
  - url: >-
      https://github.com/postfixadmin/postfixadmin/commit/0a894b08769481ce1a7f0f42af901c6d9f88fa9c
    label: Fix commit
  - url: >-
      https://github.com/postfixadmin/postfixadmin/blob/v4.0.5/public/users/totp-exceptions.php#L128
  - url: >-
      https://github.com/postfixadmin/postfixadmin/blob/v4.0.5/templates/totp-exceptions.tpl#L56
  - url: 'https://github.com/postfixadmin/postfixadmin/pull/1172'
  - url: 'https://github.com/postfixadmin/postfixadmin/pull/1186'
  - url: >-
      https://www.vulncheck.com/advisories/postfixadmin-through-4.0.5-stored-xss-via-totp-exception-description
    label: >-
      VulnCheck Advisory: PostfixAdmin through 4.0.5 Stored XSS via TOTP
      Exception Description
tags:
  - cve.org
epss: 0.00283
epssPercentile: 0.20919
ingestedAt: '2026-11-05T20:33:06.352Z'
---

## Overview

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.

## Affected

- `postfixadmin <= 4.0.5`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
