/

CVE-2026-127178

Severity:

HIGH RISK

(8.1)

Stored XSS (CWE-79) in PostfixAdmin Email Alias UI

CVE-2026-127178

Awaiting Analysis

Vulnerability type

Category:

Stored Cross-Site Scripting

CWE:

CWE-79

Impact:

Script execution in the browser of a user viewing a crafted email alias

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

PostfixAdmin has a stored cross-site scripting vulnerability in email aliases: a signed-in administrator who can inject an alias may cause script to run when an alias is viewed. Depending on the viewing user's privileges and the application context, that script could expose information or perform actions through the user's session.

Affected context

The issue affects PostfixAdmin versions before 4.0.7 in the 4.0 series and before 3.3.17 in the 3.3 series. It occurs when an administrator can inject an alias that is later displayed without adequate handling of untrusted content.

Exploit preconditions

  • Attack surface: The email alias management and viewing interface
  • Required access: A signed-in administrator able to inject or modify aliases
  • Trigger point: A user views the affected alias
  • Why exploitation is possible: Alias content is stored and later rendered in a way that may allow script to execute in the viewer's browser

Why this happens

The underlying bug is improper neutralization of untrusted input in a web page, corresponding to CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'). Alias data is stored and subsequently rendered without sufficient context-aware output encoding or equivalent safeguards, allowing browser-interpretable content to be treated as executable script.

Potential impact

  • Script could run in the browser of a user viewing an affected alias
  • An attacker could potentially act with the permissions available to that user
  • Sensitive information accessible through the affected session could be exposed
  • The application's integrity or availability could be affected through unauthorized browser actions

General mitigation guidance

Mitigation generally focuses on treating alias values as untrusted data throughout their lifecycle.

  • Apply context-aware output encoding wherever user-controlled values are rendered
  • Use secure templating defaults that escape output automatically
  • Avoid inserting untrusted values into executable or otherwise sensitive browser contexts
  • Validate inputs for expected business rules, without relying on validation as a substitute for output encoding
  • Limit administrative privileges and reduce the exposure of privileged sessions

How teams detect issues like this

  • Use static analysis to identify HTML rendering paths that include untrusted alias values without contextual encoding
  • Review templates and UI code for raw or unescaped output, especially in alias views
  • Test rendering behavior with security-focused input cases in controlled environments
  • Apply policy checks that require safe templating and output-encoding practices
  • Automated code review tools may help flag risky rendering patterns

Sources

SourceLink
github.comgithub.com/postfixadmin/postfixadmin/releases/tag/postfixadmin-3.3.17
github.comgithub.com/postfixadmin/postfixadmin/releases/tag/v4.0.7
lists.debian.orglists.debian.org/debian-lts-announce/2026/11/msg00051.html

Frequently asked

questions

The description indicates that a signed-in administrator able to inject aliases can introduce the stored content; the issue is triggered when an alias is viewed.

The described injection capability requires a signed-in administrator. The affected viewer may be another user, depending on who can access the alias view.

Treat alias values as untrusted and apply context-aware output encoding when rendering them, using secure templating defaults where possible.

Combine safe rendering practices with code review and static analysis of output paths, and keep administrative access appropriately limited.

Find out what's already
exploitable in your codebase.