{"id":"CVE-2026-59188","published":"2026-10-23T05:17:17.937","lastModified":"2026-10-23T19:36:32.410","description":"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.","cvssScore":5.4,"cvssSeverity":"MEDIUM","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","cwes":["CWE-79","CWE-434"],"vendors":[],"products":[],"references":[{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3","tags":[]},{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j","tags":[]}],"exploitRefs":[{"url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3","tags":[]},{"url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j","tags":[]}],"hasPoc":true,"ai":null}