SQL Injection Affecting github.com/ory/kratos/courier package, versions <26.2.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (17th 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 Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMORYKRATOSCOURIER-15757611
  • published23 Mar 2026
  • disclosed20 Mar 2026
  • creditUnknown

Introduced: 20 Mar 2026

CVE-2026-33503  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/ory/kratos/courier to version 26.2.0 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection in the listCourierMessages() function in handler.go. An attacker in possession of the configured secrets.pagination with access to the ListCourierMessages API can execute arbitrary SQL queries by forging a pagination token. Applications on which secrets.pagination configuration is not set are also vulnerable because they fall back to a default pagination secret.

Note: In the interim, if the package cannot be upgraded immediately, the effects of this vulnerability can be mitigated by generating a cryptographically secure pagination secret and not revealing it to untrusted parties.

CVSS Base Scores

version 4.0
version 3.1