Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm
Not in CISA KEV

Payload: SQL injection in SQLite/PostgresGHSA-pj7x-6wpf-pgvp

Fix: payloadcms/payload@03b78c7

GHSA-pj7x-6wpf-pgvp is a SQL Injection vulnerability in @payloadcms/db-sqlite. A fix is available for @payloadcms/db-sqlite — see the affected versions and patch details below.

Published
Updated
Affected
6 pkgs
Patched
6 / 6
Exploits
None indexed
Exploitation data as of Oct 16, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs21th percentile — riskier than 21% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

6 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

4other npm packages depend on this — each one inherits the vulnerability until it's patched upstream
@payloadcms/db-sqlitenpm
86Kdownloads / week
@payloadcms/db-d1-sqlitenpm
54Kdownloads / week
@payloadcms/db-postgresnpm
671Kdownloads / week

Description

Impact

An attacker who has read plus create or update access to a collection can submit a request that includes a SQL injection targeting a specific field path shape and operators in Payload's SQLite and Postgres.

You are affected if:

  • You use @payloadcms/db-sqlite or @payloadcms/db-d1-sqlite.
  • You use @payloadcms/db-postgres or @payloadcms/db-vercel-postgres < 3.73.0.
  • A readable collection has a json field, or a blocks field with blocksAsJSON: true.
  • The attacker has read plus create or update access on it.

You are not affected if:

  • You have no json or blocksAsJSONfields.richText` is not affected.
  • You run a patched version.

Patches

The patched version sanitizes the query input to prevent injection.

Users should upgrade Payload packages to >= 3.90.0 or >= 4.0.0-canary.34.

Affected Packages

6 total 6 fixed
EcosystemPackageVulnerable rangeFix
📦npm@payloadcms/db-sqlite≥ 3.0.0&&< 3.90.03.90.0npm install @payloadcms/db-sqlite@3.90.0
📦npm@payloadcms/db-d1-sqlite≥ 3.0.0&&< 3.90.03.90.0npm install @payloadcms/db-d1-sqlite@3.90.0
📦npm@payloadcms/db-postgres≥ 3.0.0&&< 3.73.03.73.0npm install @payloadcms/db-postgres@3.73.0
📦npm@payloadcms/db-vercel-postgres≥ 3.0.0&&< 3.73.03.73.0npm install @payloadcms/db-vercel-postgres@3.73.0
📦npm@payloadcms/db-sqlite≥ 4.0.0-canary.0&&< 4.0.0-canary.344.0.0-canary.34npm install @payloadcms/db-sqlite@4.0.0-canary.34
📦npm@payloadcms/db-d1-sqlite≥ 4.0.0-canary.0&&< 4.0.0-canary.344.0.0-canary.34npm install @payloadcms/db-d1-sqlite@4.0.0-canary.34

Affected Products

1 product · 35 configurations
Application
payloadpayloadcms
< 3.90.0
1 version
4.0.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @payloadcms/db-sqlite, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update @payloadcms/db-sqlite to 3.90.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pj7x-6wpf-pgvp is resolved across your whole dependency graph.

  3. Workarounds

    Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.

Frequently Asked Questions

### Impact An attacker who has read plus create or update access to a collection can submit a request that includes a SQL injection targeting a specific field path shape and operators in Payload's SQLite and Postgres. #### You are affected if: - You use `@payloadcms/db-sqlite` or `@payloadcms/db-d1-sqlite`. - You use `@payloadcms/db-postgres` or `@payloadcms/db-vercel-postgres` `< 3.73.0`. - A readable collection has a `json` field, or a` blocks` field with `blocksAsJSON: true`. - The attacker has read plus create or update access on it. #### You are not affected if: - You have no `json or
O3 Security · Impact-Aware SCA

Is GHSA-pj7x-6wpf-pgvp in your dependencies?

Find it across npm, including transitive dependencies.

Payload: SQL injection in SQLite/Postgres