SQL Injection Affecting @payloadcms/db-d1-sqlite package, versions <3.73.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (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-PAYLOADCMSDBD1SQLITE-15240186
  • published6 Feb 2026
  • disclosed5 Feb 2026
  • creditthxtech

Introduced: 5 Feb 2026

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

How to fix?

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

Overview

@payloadcms/db-d1-sqlite is a The officially supported D1 SQLite database adapter for Payload

Affected versions of this package are vulnerable to SQL Injection when querying JSON or richText fields. An attacker can extract sensitive information and gain unauthorized access to user accounts by injecting crafted SQL statements.

Note:

This is only exploitable if a Drizzle-based database adapter is used, at least one accessible collection contains a json or richText field, and the access.read permission for those fields is not set to always return false.

Workaround

This vulnerability can be mitigated by setting access: { read: () => false } on all JSON and richText fields.

References

CVSS Base Scores

version 4.0
version 3.1