CVE-2026-34400: Alerta-server SQL Injection Vulnerability in Query String Syntax API

alerta-server Updated 01 Apr 2026

Summary

31/03/2026
Yes i
High
6.9

CVE-2026-34400: alerta-server has potential SQL Injection vulnerability in Query String Syntax (q=) API. Affects alerta-server versions < 9.1.0. Fixed in 9.1.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Alerta-server is an open-source monitoring tool that allows users to manage and respond to alerts from various sources. It provides a flexible API for querying alerts, making it easier for developers to integrate alert management into their applications. However, the package has been found to have a vulnerability that could lead to SQL injection attacks, specifically through its Query String Syntax API.

Vulnerability Detail

The vulnerability arises from the way the Query String search API (q=) processes user-supplied search terms. The Postgres query parser constructs WHERE clauses by directly interpolating these terms into SQL strings using f-strings. This practice exposes the application to SQL injection attacks, allowing malicious users to manipulate database queries and potentially gain unauthorized access to sensitive data.

How To Fix

Latest published version: 9.1.0 as of 23 Oct 2026

pip install --upgrade "alerta-server==9.1.0"

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading is not immediately possible, a temporary workaround is to deploy a proxy in front of the Alerta API that sanitizes the q= parameter to prevent SQL injection attempts.

Conclusion

The CVE-2026-34400 vulnerability in the alerta-server package poses a significant risk due to its potential for SQL injection attacks through the Query String Syntax API. Users are strongly advised to upgrade to version 9.1.0 or later to mitigate this risk. For those unable to upgrade immediately, implementing a proxy to sanitize input can serve as a temporary solution.

See every vulnerability recorded for alerta-server →

Share this vulnerability

FAQ

SQL injection is a type of security vulnerability that allows an attacker to interfere with the queries that an application makes to its database. It can lead to unauthorized access to data, data manipulation, or even complete database compromise.

You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner. This tool allows you to monitor and alert in real-time for open-source vulnerabilities without requiring access to the code or installation.

If you are unable to upgrade to version 9.1.0 or later, it is recommended to implement a proxy that sanitizes the q= parameter to mitigate the risk of SQL injection attacks.

No, the MongoDB backend is not affected by this SQL injection vulnerability. The issue is specific to the Postgres query parser.

Parameterized queries are a method of structuring SQL queries that separates SQL code from user input. This approach helps prevent SQL injection by ensuring that user input is treated as data rather than executable code.

Related vulnerabilities

Recent vulnerabilities recorded for alerta-server.

How To Fix

Latest published version: 9.1.0 as of 23 Oct 2026

pip install --upgrade "alerta-server==9.1.0"

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback