CVE-2026-105865: Payload Incomplete Validation During The Upload Vulnerability

HIGH
Advisory Identifier: GHSA-p223-2wr2-j562
CVSS 8.1
CWE-73 CWE-22
Published
Advisory Summary

CVE-2026-105865 is a HIGH (CVSS 8.1) incomplete validation during the upload vulnerability (CWE-73: External Control of File Name or Path) affecting Payload libraries in the npm ecosystem. The issue involves incomplete validation during the upload file lifecycle. Remediation is available by upgrading affected packages to version 3.90.0, 4.0.0-canary.34.

CVE-2026-105865 at a Glance

CVE Identifier CVE-2026-105865
GHSA Identifier GHSA-p223-2wr2-j562
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-73: External Control of File Name or Path
Affected Product Payload
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

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:U/C:N/I:H/A:H).

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

How to Fix CVE-2026-105865

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.90.0
npm install payload@3.90.0
payload fixed: 4.0.0-canary.34
npm install payload@4.0.0-canary.34
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-105865, 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.90.0), 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-73: External Control of File Name or Path, where the product allows user input to control or influence paths or file names that are used in filesystem operations. 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 Under certain conditions, an authenticated user with permission to modify uploads could cause unintended files to be removed during file cleanup. This may result in data loss or service disruption. You are affected if: - You use Payload upload collections with local file storage. - Untrusted authenticated users can update or delete uploads. Deployments that restrict upload management to trusted users are less exposed. ## Patches Payload now validates uploaded filenames and ensures file cleanup remains within the configured upload directory. Users should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`. ## Workarounds Restrict upload update and deletion operations to trusted users and validate submitted filenames. These measures are temporary mitigations. Upgrading to a patched version is recommended.

CVE-2026-105865 Affected Payload Versions

2 component(s)
Fixed Versions:
3.90.04.0.0-canary.34
Product / Package Ecosystem Affected Versions Fixed Version
payload
npm
< 3.90.0
3.90.0
payload
npm
≥ 4.0.0-canary.0
< 4.0.0-canary.34
4.0.0-canary.34

References

Frequently Asked Questions

What is CVE-2026-105865?
CVE-2026-105865 is a security vulnerability in Payload involving Incomplete validation during the upload file lifecycle under CWE-73: External Control of File Name or Path.
Which Payload versions are affected?
Affected versions include releases prior to 3.90.0, 4.0.0-canary.34 across affected packages: payload.
What version fixes CVE-2026-105865?
Upgrading to 3.90.0, 4.0.0-canary.34 (or the latest patched release for your respective branch) resolves the vulnerability.
Is payload affected?
Yes, payload is affected in releases prior to 3.90.0, 4.0.0-canary.34. Upgrade your dependency to 3.90.0, 4.0.0-canary.34 or later.
What is the CVSS score of CVE-2026-105865?
CVE-2026-105865 has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H.
What CWE is associated with CVE-2026-105865?
CVE-2026-105865 is classified under CWE-73: External Control of File Name or Path (The product allows user input to control or influence paths or file names that are used in filesystem operations.).
How can I check npm dependencies for CVE-2026-105865?
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-p223-2wr2-j562",
  "modified" : "2026-10-07T20:29:09Z",
  "published" : "2026-10-07T20:29:09Z",
  "aliases" : [ "CVE-2026-105865" ],
  "summary" : "Payload: Incomplete validation during the upload file lifecycle",
  "details" : "## Impact\nUnder certain conditions, an authenticated user with permission to modify uploads could cause unintended files to be removed during file cleanup. This may result in data loss or service disruption.\n\nYou are affected if:\n- You use Payload upload collections with local file storage.\n- Untrusted authenticated users can update or delete uploads.\n\nDeployments that restrict upload management to trusted users are less exposed.\n\n## Patches\nPayload now validates uploaded filenames and ensures file cleanup remains within the configured upload directory.\n\nUsers should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.\n\n## Workarounds\nRestrict upload update and deletion operations to trusted users and validate submitted filenames. These measures are temporary mitigations. Upgrading to a patched version is recommended.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "payload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.90.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "payload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-canary.0"
      }, {
        "fixed" : "4.0.0-canary.34"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/security/advisories/GHSA-p223-2wr2-j562"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105865"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/commit/6b74418f628fa633c2f297e5919a9f91b383dc11"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/payloadcms/payload"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/releases/tag/v3.90.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-73" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-07T20:29:09Z",
    "nvd_published_at" : "2026-10-06T17:17:22Z"
  }
}