SQL Injection Affecting @payloadcms/db-postgres package, versions >=3.0.0 <3.73.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (17th 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-JS-PAYLOADCMSDBPOSTGRES-20936944
  • published14 Oct 2026
  • disclosed13 Oct 2026
  • credit0xMesbaha

Introduced: 13 Oct 2026

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

How to fix?

Upgrade @payloadcms/db-postgres to version 3.73.0 or higher.

Overview

@payloadcms/db-postgres is a The officially supported Postgres database adapter for Payload

Affected versions of this package are vulnerable to SQL Injection via improper escaping of string values in parseParams when constructing JSON queries for in and not_in operators. An authenticated attacker can supply a string value containing a single-quote character in a query parameter to break out of the intended SQL literal context and inject arbitrary SQL, achieving full read and write access to the database.

CVSS Base Scores

version 4.0
version 3.1