CVE-2025-49136
MEDIUM 6.5CVSS 3.1listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user
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.
- Published
- 9 Jun 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1336
- Also known as
- GHSA-jc7g-x28f-3v3hGO-2025-3745
- Sources
- NVDJSONOSV GHSA-jc7g-x28f-3v3hJSONOSV GO-2025-3745JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nadh | listmonkcpe:2.3:a:nadh:listmonk:*:*:*:*:*:*:*:* |
>= 4.0.0, < 5.0.2 | 5.0.2 |
| OSV | Go | github.com/knadh/listmonk | >= 4.0.0, < 5.0.2 | 5.0.2 |
| OSV | Go | github.com/knadh/listmonk | all versions |
References
- https://github.com/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3e · Patch, WEB, FIX
- https://github.com/knadh/listmonk/releases/tag/v5.0.2 · Release Notes, WEB
- https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-49136 · ADVISORY
- https://github.com/knadh/listmonk · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 9 Jun 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Jun 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Jun 2025)