{"id":"CVE-2026-105862","aliases":["CVE-2026-105862","GHSA-2pwp-2369-8fg3"],"related":[],"kind":"vulnerability","state":"published","title":"Payload: Bypassed sanitization of user uploaded SVGs","summary":"Payload is a free and open source headless content management system. In versions before 3.90.0 and canary versions before 4.0.0-canary.34, a collection that allows downloadable SVG uploads can store a malicious SVG that bypasses sanitization and executes attacker-controlled JavaScript when a user downloads and opens the SVG. This issue is fixed in versions 3.90.0 and 4.0.0-canary.34.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Payload is a free and open source headless content management system. In versions before 3.90.0 and canary versions before 4.0.0-canary.34, a collection that allows downloadable SVG uploads can store a malicious SVG that bypasses sanitization and executes attacker-controlled JavaScript when a user downloads and opens the SVG. This issue is fixed in versions 3.90.0 and 4.0.0-canary.34.","source":"cvelist"},{"lang":"en","text":"## 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.","format":"markdown","source":"ghsa"}],"published":"2026-10-06T16:37:59.487Z","modified":"2026-10-15T00:09:17.103Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":8.7,"rating":"HIGH"}],"cwes":["CWE-79","CWE-434"],"affected":[{"ranges":[{"version":"< 3.90.0","status":"affected"},{"version":">= 4.0.0-canary.0, < 4.0.0-canary.34","status":"affected"}],"vendor":"payloadcms","product":"payload","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.90.0"}],"ecosystem":"npm","package":"payload","purl":"pkg:npm/payload","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"4.0.0-canary.0","status":"affected","fixed":"4.0.0-canary.34"}],"ecosystem":"npm","package":"payload","purl":"pkg:npm/payload","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.90.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"},{"status":"affected","version":"4.0.0"}],"vendor":"payloadcms","product":"payload","cpe":"cpe:2.3:a:payloadcms:payload:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/payloadcms/payload/security/advisories/GHSA-2pwp-2369-8fg3","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/payloadcms/payload/commit/a8c3a8e8e2680c96ec4f66f5b3854c5df6c35adf","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/payloadcms/payload/releases/tag/v3.90.0","tags":["patch","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105862","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/payloadcms/payload","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-06T17:23:55.762Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-105862","url":"https://www.cve.org/CVERecord?id=CVE-2026-105862","licence":"CVE Terms of Use","modified":"2026-10-06T17:24:09.513Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2pwp-2369-8fg3","url":"https://github.com/advisories/GHSA-2pwp-2369-8fg3","licence":"CC-BY-4.0","modified":"2026-10-07T20:45:04.330Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-105862","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-105862","licence":"Public domain","modified":"2026-10-15T00:09:17.103Z"}],"updatedAt":"2026-11-25T22:59:42.377Z","epss":{"score":0.00271,"percentile":0.20855,"date":"2026-12-01T12:00:22.000Z"}}