{"id":"CVE-2026-59188","aliases":["CVE-2026-59188"],"related":[],"kind":"vulnerability","state":"published","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 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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-23T03:59:11.068Z","modified":"2026-10-29T13:17:13.693Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-434"],"affected":[{"ranges":[{"version":"< 2.12.3","status":"affected"}],"vendor":"Part-DB","product":"Part-DB-server","source":"cvelist"}],"references":[{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-10-29T12:48:16.940Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-59188","url":"https://www.cve.org/CVERecord?id=CVE-2026-59188","licence":"CVE Terms of Use","modified":"2026-10-29T12:49:30.293Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-59188","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59188","licence":"Public domain","modified":"2026-10-29T13:17:13.693Z"}],"updatedAt":"2026-11-25T22:59:46.857Z","epss":{"score":0.00188,"percentile":0.08772,"date":"2026-12-01T12:00:22.000Z"}}