---
id: "CVE-2026-129168"
page: "https://infrastack.ai/live/CVE-2026-129168"
kind: "vulnerability"
aliases: ["CVE-2026-129168"]
title: "PMail: stored XSS in attachments endpoint lets email senders run script"
severity: "medium"
cvss: 6.1
epss: null
exploited: false
status: "open"
category: "other"
products: [{"name": "PMail", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["other", "pmail", "self-hosted", "webmail"]
not_affected_if: ["version-outside-2.9.1-2.9.8"]
published_at: "2026-11-13T18:17:42+00:00"
first_seen_at: "2026-11-13T18:49:31+00:00"
updated_at: "2026-11-13T18:51:45+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129168", "first_seen_at": "2026-11-13T18:49:31+00:00"}]
exploit_sources: []
---

# PMail: stored XSS in attachments endpoint lets email senders run script

Link for people: https://infrastack.ai/live/CVE-2026-129168 (this .md is for agents)

PMail 2.9.1 through 2.9.8 serves email attachments with the sender-supplied Content-Type, so a crafted HTML attachment linked from a message runs script in the recipient's webmail session. An unauthenticated sender can use this to change passwords, including the administrator's.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:PMail affected range not listed fixed no fixed version listed

## How to check

- Check the installed PMail version against the affected range 2.9.1 through 2.9.8

## Timeline

- 2026-11-13T18:49:31+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129168

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/pmail-2.9.1-through-2.9.8-stored-xss-via-inline-html-attachments

## From the sources

PMail 2.9.1 through 2.9.8 contains a stored cross-site scripting vulnerability because the /attachments/{id}/{cid} endpoint returns email attachments verbatim with the sender-supplied Content-Type after cid: references are rewritten into attachment links. Unauthenticated SMTP senders can email a text/html attachment and a page-covering cid link, so a recipient who clicks the message runs script in their webmail session to change passwords, including the administrator's.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
