{"id":"CVE-2026-59188","title":"Part-DB: SVG Sanitization Bypass via Extension Spoofing Leads to Stored XSS in Attachment Viewer","summary":"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 …","severity":"medium","cvss":5.4,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","cvssSource":"cna","cwe":["CWE-79","CWE-434"],"vendor":"Part-DB","product":"Part-DB-server","affected":["Part-DB-server < 2.12.3"],"published":"2026-10-23","updated":"2026-10-23","sourceUpdated":"2026-10-23T03:59:11.068Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-59188","references":[{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j","label":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j"},{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3","label":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3"}],"tags":["cve.org"],"ingestedAt":"2026-10-23T05:16:21.505Z","slug":"CVE-2026-59188","body":"## Overview\n\nPart-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.\n\n## Affected\n\n- `Part-DB-server < 2.12.3`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":29.7,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}