Vulnerability · Published Aug 21, 2026 · Assigned by GitHub_M

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

Medium 5.9

In plain English

A medium-severity injection in keda from kedacore. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.4%top 67.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/kedacore/kedano fix listedGO-2026-5940
Gogithub.com/kedacore/keda/v22.20.0GHSA-6w3m-4hhp-775q
Gogithub.com/kedacore/keda/v22.20.0GO-2026-5940

Affected products (as reported)

VendorProductVersions
kedacore keda < 2.20.0

Weakness: CWE-74, CWE-89 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N

References