---
title: "CVE-2025-49136: listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user"
url: https://erroneo.us/security/cve/CVE-2025-49136/
description: "CVE-2025-49136 (github.com/knadh/listmonk (Go)): listmonk is a standalone, self-hosted, newsletter and mailing list manager. Starting in version 4.0.0 and…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-06-09
date_modified: 2025-06-10
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-49136"
kev: false
cvss: 9.1
epss: 0.0158
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-49136: listmonk's Sprig template Injection vulnerability leads to reading of Environment Variable for low privilege user

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.6% , percentile 75: FIRST’s model estimates a 1.6% chance of exploitation activity in the next 30 days, higher than 75% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes github.com/knadh/listmonk (Go) >= 4.0.0, < 5.0.2, fixed in 5.0.2 . Check your lockfile, including transitive dependencies.

## What it is

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 packages

- Go `github.com/knadh/listmonk` >= 4.0.0, < 5.0.2 → fixed: 5.0.2

## Affected products (CVE record)

- knadh listmonk: >= 4.0.0, < 5.0.2

## Severity

- GitHub_M CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.0 `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.58% probability of exploitation activity in the next 30 days; percentile 75.

## Sources

- [GitHub Advisory GHSA-jc7g-x28f-3v3h](https://github.com/advisories/GHSA-jc7g-x28f-3v3h)
- [CVE.org record CVE-2025-49136](https://www.cve.org/CVERecord?id=CVE-2025-49136)
- [NVD entry CVE-2025-49136](https://nvd.nist.gov/vuln/detail/CVE-2025-49136)
- [github.com](https://github.com/knadh/listmonk/security/advisories/GHSA-jc7g-x28f-3v3h)
- [github.com](https://github.com/knadh/listmonk/commit/d27d2c32cf3af2d0b24e29ea5a686ba149b49b3e)
- [github.com](https://github.com/knadh/listmonk/releases/tag/v5.0.2)

---
Source page: https://erroneo.us/security/cve/CVE-2025-49136/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
