Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting github.com/knadh/listmonk/internal/manager package, versions >=4.0.0 <5.0.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMKNADHLISTMONKINTERNALMANAGER-10379733
  • published18 Jun 2025
  • disclosed9 Jun 2025
  • creditNakkouch Tarek

Introduced: 9 Jun 2025

CVE-2025-49136  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade github.com/knadh/listmonk/internal/manager to version 5.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') through the use of template functions env and expandenv, which are enabled by default. An attacker can extract sensitive system data, including database credentials, SMTP passwords, and admin credentials by crafting malicious template content in the campaign preview functionality.

Note: This is only exploitable if the user has campaigns:get and campaigns:get_all privileges.

Workaround

This vulnerability can be mitigated by blacklisting some functions for templates like env, expandEnv and fail as they can be used to leak environment variables which leads to a full takeover.

CVSS Base Scores

version 4.0
version 3.1