{"id":"GHSA-2pwp-2369-8fg3","revision":"576f588cd76f41b48a9874f191e20ea6","records":[{"revision":"576f588cd76f41b48a9874f191e20ea6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-2pwp-2369-8fg3","aliases":["CVE-2026-105862"],"title":"Payload: Bypassed sanitization of user uploaded SVGs","description":"## 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.","state":0,"publishedAt":"2026-10-07T20:29:36+00:00","modifiedAt":"2026-10-07T20:45:04.3303679+00:00","affected":[{"ecosystem":"npm","name":"payload","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.90.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"payload","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"4.0.0-canary.0"},{"kind":"fixed","version":"4.0.0-canary.34"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/payloadcms/payload/security/advisories/GHSA-2pwp-2369-8fg3","https://nvd.nist.gov/vuln/detail/CVE-2026-105862","https://github.com/payloadcms/payload/commit/a8c3a8e8e2680c96ec4f66f5b3854c5df6c35adf","https://github.com/payloadcms/payload","https://github.com/payloadcms/payload/releases/tag/v3.90.0"],"sourceUrl":"https://github.com/advisories/GHSA-2pwp-2369-8fg3","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2pwp-2369-8fg3","identifiers":["GHSA-2pwp-2369-8fg3","CVE-2026-105862"]},"retained":false,"historicalAffected":[]}],"coverage":[]}