CVE-2026-34747: Payload SQL Injection Vulnerability
HIGHCVE-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
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).
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.
npm install payload@3.79.1
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
CVE-2026-34747 Affected Payload Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
payload
|
npm |
< 3.79.1
|
3.79.1
|
References
Frequently Asked Questions
What is CVE-2026-34747?
Which Payload versions are affected?
What version fixes CVE-2026-34747?
Is payload affected?
What is the CVSS score of CVE-2026-34747?
What CWE is associated with CVE-2026-34747?
How can I check npm dependencies for CVE-2026-34747?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}