SQL Injection Affecting github.com/grafana/grafana/pkg/expr/sql package, versions >=11.6.0 <11.6.4>=12.0.0 <12.1.10>=12.2.0 <12.2.8>=12.3.0 <12.3.6>=12.4.0 <12.4.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.93% (78th 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-GITHUBCOMGRAFANAGRAFANAPKGEXPRSQL-15874150
  • published2 Apr 2026
  • disclosed27 Mar 2026
  • creditUnknown

Introduced: 27 Mar 2026

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

How to fix?

Upgrade github.com/grafana/grafana/pkg/expr/sql to version 11.6.4, 12.1.10, 12.2.8, 12.3.6, 12.4.2 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the sqlExpressions feature. An attacker can execute unauthorized commands on the system by chaining SQL Expressions with plugin functionality.

CVSS Base Scores

version 4.0
version 3.1