CVE-2026-105868: Payload Uploaded XML Files Could Execute Vulnerability
HIGHCVE-2026-105868 is a HIGH uploaded xml files could execute vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Payload libraries in the npm ecosystem. The issue involves uploaded xml files could execute same-origin javascript. Remediation is available by upgrading affected packages to version 3.90.0, 4.0.0-canary.34.
CVE-2026-105868 at a Glance
How to Fix CVE-2026-105868
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.90.0
npm install payload@4.0.0-canary.34
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-105868, 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
CVE-2026-105868 Affected Payload Versions
2 component(s)| 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-105868?
Which Payload versions are affected?
What version fixes CVE-2026-105868?
Is payload affected?
What CWE is associated with CVE-2026-105868?
How can I check npm dependencies for CVE-2026-105868?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9qpg-3cf8-w33x",
"modified" : "2026-10-07T20:28:53Z",
"published" : "2026-10-07T20:28:53Z",
"aliases" : [ "CVE-2026-105868" ],
"summary" : "Payload: Uploaded XML files could execute same-origin JavaScript",
"details" : "### Impact\nUnder certain local upload configurations, an uploaded XML file and stylesheet could execute JavaScript in the Payload origin when a logged-in user opens the file.\n\nYou are affected if:\n- You accept XML uploads (accepted by default).\n\n### Patches\nUsers should upgrade Payload packages to `>= 3.90.0` or `>= 4.0.0-canary.34`.\n\n### Workarounds\nDisallow XML/XSL uploads.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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-9qpg-3cf8-w33x"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-105868"
}, {
"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" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-07T20:28:53Z",
"nvd_published_at" : "2026-10-06T17:17:23Z"
}
}