{"id":"CVE-2026-59188","published":"2026-10-23T03:59:11Z","modified":"2026-10-29T12:49:30Z","title":"Part-DB: SVG Sanitization Bypass via Extension Spoofing Leads to Stored XSS in Attachment Viewer","vendor":"Part-DB","product":"Part-DB-server","tier":"tail","description":{"text":"Part-DB is an open source inventory management system for electronic components. Prior to version 2.12.3, Part-DB-server sanitizes SVG files based solely on the user-controlled filename extension rather than actual file content type. An authenticated attacker can upload a malicious SVG with JavaScript payload using a non-SVG extension (e.g., .jpg), bypassing sanitization entirely. When any user views the attachment inline, the browser receives Content-Type: image/svg+xml and executes the embedded script in the Part-DB origin. This issue has been patched in version 2.12.3.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0015,"percentile":0.04233,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3","tags":["x_refsource_MISC"]}],"priority":{"score":4.6,"factors":[{"name":"EPSS percentile","points":0.85},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"part-db","affectedVersions":[{"vendor":"Part-DB","product":"Part-DB-server","versions":["< 2.12.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-29T12:48:16.940583Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-108577","exploited":false,"provenance":"source"}}