Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-62361
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 13:23 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Jul 2026, 20:56 UTC

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.

osv:CVE-2026-62361
Complete source record
{
  "id": "565d3462bed31d7e312a275922cb80af8c156bc16b5420252e6358bec11a9d13",
  "url": "https://osv.dev/vulnerability/CVE-2026-62361",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "listmonk: SQL Injection in `/api/subscribers/export` bypasses table access control, leaking admin password hashes and SMTP credentials",
    "summary": "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.",
    "evidence": "osv:CVE-2026-62361",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-62361",
      "aliases": [
        "CVE-2026-62361",
        "GHSA-xgjr-7j9q-2h4r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/knadh/listmonk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ef0a75872463f10a4848af6c547d1c057405453a"
                },
                {
                  "fixed": "c0a6525009a65265230185f16e8674dcc83aa024"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.2.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "c0a6525009a65265230185f16e8674dcc83aa024"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ef0a75872463f10a4848af6c547d1c057405453a"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v6.2.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v6.1.0",
            "nightly",
            "v6.0.0",
            "v5.1.0",
            "v5.0.3",
            "v5.0.2",
            "v5.0.1",
            "v5.0.0",
            "v4.1.0",
            "v4.0.1",
            "v4.0.0",
            "v3.0.0",
            "v2.5.1",
            "v2.5.0",
            "v2.4.0",
            "v2.3.0",
            "v2.2.0",
            "v2.1.0",
            "v2.0.0",
            "v1.1.0",
            "v1.0.0",
            "v0.9.0-beta",
            "v0.8.0-beta",
            "v0.7.0-alpha",
            "v0.6.2-alpha",
            "v0.6.1-alpha",
            "v0.6.0-alpha",
            "v0.5.2-alpha",
            "v0.5.1-alpha",
            "v0.5.0-alpha",
            "v0.4.0-alpha",
            "v0.3.3-alpha",
            "v0.3.2-alpha",
            "v0.3.1-alpha",
            "v0.3.0-alpha",
            "v0.2.2-alpha",
            "v0.2.1-alpha",
            "v0.2.0-alpha",
            "v0.1.2-alpha",
            "v0.1.1-alpha",
            "v0.1.0-alpha"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62361.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.801186773Z",
      "provider": "osv",
      "references": [
        "https://github.com/knadh/listmonk/releases/tag/v6.2.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62361.json",
        "https://github.com/knadh/listmonk/security/advisories/GHSA-xgjr-7j9q-2h4r",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-62361",
        "https://github.com/knadh/listmonk/commit/c0a6525009a65265230185f16e8674dcc83aa024"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62361.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-62361",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 495821,
  "published_at": "2026-07-15T20:56:45.832+00:00"
}