SQL Injection Affecting alerta-server package, versions [6.3.0,9.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (4th 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-PYTHON-ALERTASERVER-15870978
  • published1 Apr 2026
  • disclosed31 Mar 2026
  • creditUnknown

Introduced: 31 Mar 2026

NewCVE-2026-34400  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade alerta-server to version 9.1.0 or higher.

Overview

alerta-server is an Alerta server WSGI application

Affected versions of this package are vulnerable to SQL Injection in the q parameter of the query string API due to direct interpolation of user-supplied input into SQL statements using f-strings. An attacker can execute arbitrary SQL commands by crafting malicious input to the q parameter, potentially leading to unauthorized data access or modification.

Note:

This issue affects only users with Postgres backend, MongoDB backend is not affected.

Workaround

This vulnerability can be mitigated by deploying a proxy in front of the API to sanitize the q parameter.

CVSS Base Scores

version 4.0
version 3.1