CVE-2026-105862: Payload Bypassed Sanitization Of User Uploaded Vulnerability

HIGH
Advisory Identifier: GHSA-2pwp-2369-8fg3
CVSS 8.7
CWE-434 CWE-79
Published
Advisory Summary

CVE-2026-105862 is a HIGH (CVSS 8.7) bypassed sanitization of user uploaded vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Payload libraries in the npm ecosystem. The issue involves bypassed sanitization of user uploaded svgs. Remediation is available by upgrading affected packages to version 3.90.0, 4.0.0-canary.34.

CVE-2026-105862 at a Glance

CVE Identifier CVE-2026-105862
GHSA Identifier GHSA-2pwp-2369-8fg3
Severity HIGH
CVSS v3.1 Base Score 8.7
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Payload
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.7

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

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

How to Fix CVE-2026-105862

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-105862, 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-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. 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 A malicious SVG file upload could bypass sanitization, be stored, and execute attacker-controlled JavaScript (XSS) after a user downloads it and opens it. **You are affected if:** - You have a collection configured to upload and allow SVG files which can then be downloaded by users. ## Patches The fix validates SVG content on every upload path and hardens SVG/XML delivery so stored SVGs cannot frame attacker content. Users should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`. ## Workarounds Disallow SVG uploads, or serve uploaded SVGs as downloads with Content-Disposition: attachment and a strict CSP. These mitigations reduce exposure but do not replace upgrading when the patched release is available.

CVE-2026-105862 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-105862?
CVE-2026-105862 is a security vulnerability in Payload involving Bypassed sanitization of user uploaded SVGs under CWE-434: Unrestricted Upload of File with Dangerous Type.
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-105862?
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-105862?
CVE-2026-105862 has a CVSS v3.1 base score of 8.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-105862?
CVE-2026-105862 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check npm dependencies for CVE-2026-105862?
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-2pwp-2369-8fg3",
  "modified" : "2026-10-07T20:29:36Z",
  "published" : "2026-10-07T20:29:36Z",
  "aliases" : [ "CVE-2026-105862" ],
  "summary" : "Payload: Bypassed sanitization of user uploaded SVGs",
  "details" : "## Impact\n\nA malicious SVG file upload could bypass sanitization, be stored, and execute attacker-controlled JavaScript (XSS) after a user downloads it and opens it.\n\n**You are affected if:**\n\n- You have a collection configured to upload and allow SVG files which can then be downloaded by users.\n\n## Patches\n\nThe fix validates SVG content on every upload path and hardens SVG/XML delivery so stored SVGs cannot frame attacker content.\n\nUsers should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.\n\n## Workarounds\n\nDisallow SVG uploads, or serve uploaded SVGs as downloads with Content-Disposition: attachment and a strict CSP. These mitigations reduce exposure but do not replace upgrading when the patched release is available.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "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-2pwp-2369-8fg3"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105862"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/commit/a8c3a8e8e2680c96ec4f66f5b3854c5df6c35adf"
  }, {
    "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-434", "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-07T20:29:36Z",
    "nvd_published_at" : "2026-10-06T17:17:22Z"
  }
}