CVE-2026-34747: Payload SQL Injection Vulnerability

HIGH
Advisory Identifier: GHSA-7xxh-373w-35vg
CVSS 8.5
CWE-89
Published
Advisory Summary

CVE-2026-34747 is a HIGH (CVSS 8.5) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Payload libraries in the npm ecosystem. The issue involves payload has an sql injection via query handling. Remediation is available by upgrading affected packages to version 3.79.1.

CVE-2026-34747 at a Glance

CVE Identifier CVE-2026-34747
GHSA Identifier GHSA-7xxh-373w-35vg
Severity HIGH
CVSS v3.1 Base Score 8.5
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Payload
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-34747

To remediate this vulnerability, upgrade all affected Payload dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

payload fixed: 3.79.1
npm install payload@3.79.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls payload

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-34747, inspect your project dependencies using npm:

npm ls payload

Analyze the terminal output to locate any version of Payload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.79.1), your application is affected.

Note: The npm ls payload command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Payload, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Certain request inputs were not properly validated. An attacker could craft requests that influence SQL query execution, potentially exposing or modifying data in collections. ### Patches This issue has been fixed in **v3.79.1** and later. Query input validation has been hardened. Upgrade to **v3.79.1 or later**. ### Workarounds Until developers can upgrade: - Limit access to endpoints that accept dynamic query inputs to trusted users only. - Validate or sanitize input from untrusted clients before sending it to query endpoints.

CVE-2026-34747 Affected Payload Versions

1 component(s)
Fixed Versions:
3.79.1
Product / Package Ecosystem Affected Versions Fixed Version
payload
npm
< 3.79.1
3.79.1

References

Frequently Asked Questions

What is CVE-2026-34747?
CVE-2026-34747 is a security vulnerability in Payload involving Payload has an SQL Injection via Query Handling under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Payload versions are affected?
Affected versions include releases prior to 3.79.1 across affected packages: payload.
What version fixes CVE-2026-34747?
Upgrading to 3.79.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is payload affected?
Yes, payload is affected in releases prior to 3.79.1. Upgrade your dependency to 3.79.1 or later.
What is the CVSS score of CVE-2026-34747?
CVE-2026-34747 has a CVSS v3.1 base score of 8.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2026-34747?
CVE-2026-34747 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check npm dependencies for CVE-2026-34747?
Run the dependency tree command: 'npm ls payload'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7xxh-373w-35vg",
  "modified" : "2026-04-06T16:46:38Z",
  "published" : "2026-04-01T21:19:03Z",
  "aliases" : [ "CVE-2026-34747" ],
  "summary" : "Payload has an SQL Injection via Query Handling",
  "details" : "### Impact\n\nCertain request inputs were not properly validated. An attacker could craft requests that influence SQL query execution, potentially exposing or modifying data in collections.\n\n### Patches\n\nThis issue has been fixed in **v3.79.1** and later. Query input validation has been hardened.\n\nUpgrade to **v3.79.1 or later**.\n\n### Workarounds\n\nUntil developers can upgrade:\n\n- Limit access to endpoints that accept dynamic query inputs to trusted users only.  \n- Validate or sanitize input from untrusted clients before sending it to query endpoints.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "payload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.79.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/security/advisories/GHSA-7xxh-373w-35vg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34747"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/payloadcms/payload"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/releases/tag/v3.79.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-01T21:19:03Z",
    "nvd_published_at" : "2026-04-01T20:16:26Z"
  }
}