{"id":"CVE-2026-105862","aliases":["GHSA-2pwp-2369-8fg3"],"url":"https://o3.security/vulnerability/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.","published":"2026-10-06T16:37:59.487Z","modified":"2026-10-21T02:54:34.759149176Z","cvss":{"score":8.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"payload","fixedVersion":"3.90.0"},{"ecosystem":"npm","name":"payload","fixedVersion":"4.0.0-canary.34"}],"fix":{"url":"https://github.com/payloadcms/payload/commit/a8c3a8e8e2680c96ec4f66f5b3854c5df6c35adf","label":"payloadcms/payload@a8c3a8e"},"references":[{"type":"WEB","url":"https://github.com/payloadcms/payload/releases/tag/v3.90.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/105xxx/CVE-2026-105862.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/payloadcms/payload/commit/a8c3a8e8e2680c96ec4f66f5b3854c5df6c35adf"},{"type":"PACKAGE","url":"https://github.com/payloadcms/payload"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:54:34.759149176Z"}}