Vulnerabilityin knadh listmonk.
Weaponized: a Metasploit exploit is public.
listmonk is a standalone, self-hosted, newsletter and mailing list manager. Starting in version 4.0.0 and prior to version 5.0.2, the `env` and `expandenv` template functions which is enabled by default in Sprig enables capturing of env variables on host. While this may not be a problem on single-user (super admin) installations, on multi-user installations, this allows non-super-admin users with campaign or template permissions to use the `{{ env }}` template expression to capture sensitive environment variables. Users should upgrade to v5.0.2 to mitigate the issue.
- Upgrade listmonk to 5.0.2 or later.
- Upgrade github.com/knadh/listmonk (Go) to 5.0.2 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 2 Jun 2025CVE ID reserved by GitHub_M.
- 8 Jun 2025Metasploit module: Listmonk Insecure Sprig Template Functions Environment Disclosure.
- 9 Jun 2025Published in the CVE List.
- 10 Jun 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other listmonk vulnerabilities
Same weakness: Template injection
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- github.com x_refsource_MISC
Patchminder. CVE-2025-49136: Vulnerability in knadh listmonk. https://patchminder.com/cve/cve-2025-49136/ (accessed 5 December 2026).