{"id":"CVE-2026-34400","aliases":["CVE-2026-34400","GHSA-8prr-286p-4w7j","PYSEC-2026-2341"],"related":[],"kind":"vulnerability","state":"published","title":"alerta-server has potential SQL Injection vulnerability in Query String Syntax (q=) API","summary":"Alerta is a monitoring tool. Prior to version 9.1.0, the Query string search API (q=) was vulnerable to SQL injection via the Postgres query parser, which built WHERE clauses by interpolating user-supplied search terms directly into SQL strings via f-strings. This issue has been patched in version 9.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Alerta is a monitoring tool. Prior to version 9.1.0, the Query string search API (q=) was vulnerable to SQL injection via the Postgres query parser, which built WHERE clauses by interpolating user-supplied search terms directly into SQL strings via f-strings. This issue has been patched in version 9.1.0.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe Query string search API (q=) was vulnerable to SQL injection via the Postgres query parser, which built WHERE clauses by interpolating user-supplied search terms directly into SQL strings via f-strings.\n\n### Patches\nFixed in v9.1.0. The Postgres query parser now uses parameterized queries with %(name)s placeholders passed to psycopg2's cursor.execute(), preventing SQL injection through the ?q= parameter. The MongoDB backend was not affected.\n\n### Workarounds\nUpgrade to v9.1.0 or later. If unable to upgrade, deploy a proxy in front of the Alerta API to sanitize the q= parameter.\n\n### Resources\nhttps://github.com/alerta/alerta/pull/712/files\nhttps://owasp.org/www-community/attacks/SQL_Injection","format":"markdown","source":"ghsa"},{"lang":"es","text":"Alerta es una herramienta de monitoreo. Antes de la versión 9.1.0, la API de búsqueda de cadena de consulta (q=) era vulnerable a la inyección SQL a través del analizador de consultas de Postgres, que construía cláusulas WHERE interpolando términos de búsqueda proporcionados por el usuario directamente en cadenas SQL a través de f-strings. Este problema ha sido parcheado en la versión 9.1.0.","source":"nvd"}],"published":"2026-03-31T21:00:59.824Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 9.1.0","status":"affected"}],"vendor":"alerta","product":"alerta","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.1.0"}],"ecosystem":"PyPI","package":"alerta-server","purl":"pkg:pypi/alerta-server","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"9.1.0"}],"vendor":"alerta_project","product":"alerta","cpe":"cpe:2.3:a:alerta_project:alerta:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.1.0"}],"ecosystem":"PyPI","package":"alerta-server","purl":"pkg:pypi/alerta-server","source":"pysec"}],"references":[{"url":"https://github.com/alerta/alerta/security/advisories/GHSA-8prr-286p-4w7j","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/alerta/alerta/pull/2040","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/alerta/alerta/pull/712","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/alerta/alerta/commit/aeba85a37a09e5769a7a2da56481aa979ff99a00","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/alerta/alerta/commit/fdd52cd1abad8d02d1dfb8ecdcdbb43b6af3b883","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/alerta/alerta/releases/tag/v9.1.0","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34400","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/alerta/alerta","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/alerta-server","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-8prr-286p-4w7j","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-03T16:36:18.411Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34400","url":"https://www.cve.org/CVERecord?id=CVE-2026-34400","licence":"CVE Terms of Use","modified":"2026-04-03T16:36:42.053Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8prr-286p-4w7j","url":"https://github.com/advisories/GHSA-8prr-286p-4w7j","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:01.668Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34400","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34400","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2341","url":"https://osv.dev/vulnerability/PYSEC-2026-2341","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:36.295Z"}],"updatedAt":"2026-11-25T22:59:17.640Z","epss":{"score":0.02007,"percentile":0.81407,"date":"2026-12-01T12:00:22.000Z"}}