Skip to content
OpenAdvisories
Medium · 5.5 CVE-2026-62361 EUVD-2026-44815GHSA-xgjr-7j9q-2h4r

listmonk: SQL Injection in `/api/subscribers/export` bypasses table access control, leaking admin password hashes and SMTP credentials

Published Jul 15, 2026 · Updated Jul 16, 2026 · Assigned by GitHub_M

Description

listmonk is a standalone, self-hosted, newsletter and mailing list manager. Prior to 6.2.0, listmonk’s GET /api/subscribers/export endpoint injects the user-controlled query parameter into QuerySubscribersForExport in internal/core/subscribers.go without calling validateQueryTables, unlike GET /api/subscribers, allowing an authenticated user with subscribers:sql_query and subscribers:get_all to read arbitrary database tables such as users and settings and execute data-modifying PostgreSQL CTEs. This issue is fixed in version 6.2.0.

Affected products

VendorProductAffectedFixed
knadh listmonk < 6.2.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/knadh/listmonk < 1.1.1-0.20260619102436-c0a6525009a6 1.1.1-0.20260619102436-c0a6525009a6 GHSA-xgjr-7j9q-2h4r

References