listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1336.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| knadh | listmonk | 4.0.0 to before 5.0.2 | 5.0.2 | Patch available | CNA |
| — | github.com/knadh/listmonk (Go) | 4.0.0 to before 5.0.2 | 5.0.2 | Patch available | GHSA-jc7g-x28f-3v3h |
- listmonk Vendorknadh Affected 4.0.0 to before 5.0.2 Fixed in 5.0.2 Patch available CNA
- github.com/knadh/listmonk (Go) Vendor— Affected 4.0.0 to before 5.0.2 Fixed in 5.0.2 Patch available GHSA-jc7g-x28f-3v3h
Remediation
- Fix · CNA listmonk (knadh) Fixed in 5.0.2
- Fix · GHSA-jc7g-x28f-3v3h github.com/knadh/listmonk (Go) Fixed in 5.0.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-49136
- 2026-10-03 Alias added: GHSA-jc7g-x28f-3v3h
References
More knadh Listmonk vulnerabilities
- TI-2025-36190 listmonk Vulnerable to CSRF to XSS Chain That Can Lead to Admin Account Takeover CVSS 4.0HIGH 8.6
- TI-2026-27072 listmonk: Active sessions remain valid after password reset and password change CVSS 3.1HIGH 7.1
- TI-2026-17337 listmonk Vulnerable to Stored XSS Leading to Admin Account Takeover CVSS 4.0MEDIUM 5.4
- TI-2025-28914 Listmonk v4.1.0 (fixed in v5.0.0) is vulnerable to SQL Injection in the QuerySubscribers… CVSS 3.1MEDIUM 6.5
- TI-2026-26831 listmonk: Broken Access Control in CSV Import (Unauthorized List Assignment) CVSS 3.1MEDIUM 5.4
Sources
- CVE-2025-49136 · CVE Program
- CVE-2025-49136 · NVD
- FIRST EPSS
- GHSA-jc7g-x28f-3v3h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences