Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| knadh | listmonk | >= 4.0.0, < 5.0.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20250612T141001-1.1 | openSUSE-SU-2025:15225-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Listmonk Insecure Sprig Template Functions Environment Disclosure
auxiliary/gather/listmonk_env_disclosure
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/knadh/listmonk | >= 4.0.0, < 5.0.2 | 5.0.2 | GHSA-jc7g-x28f-3v3h |
| Go | github.com/knadh/listmonk | all versions | — | GO-2025-3745 |
Advisories 1
- openSUSE-SU-2025:15225-1 govulncheck-vulndb-0.0.20250612T141001-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026