{"id":"CVE-2026-59188","summary":"Part-DB: SVG Sanitization Bypass via Extension Spoofing Leads to Stored XSS in Attachment Viewer","details":"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.","aliases":["GHSA-2vhp-c958-m47j"],"modified":"2026-10-31T02:30:34.306764953Z","published":"2026-10-23T03:59:11.068Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59188.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-434","CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59188.json"},{"type":"ADVISORY","url":"https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59188"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/part-db/part-db-server","events":[{"introduced":"0"},{"fixed":"a793bc32c7b18bd70cc4c965b86f3d0dcffb07c1"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.12.3"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"original_tag":"v2.12.3","range":[{"fixed":"a793bc32c7b18bd70cc4c965b86f3d0dcffb07c1"}],"source":"REFERENCES_TAG"},{"source":"DESCRIPTION","range":[{"introduced":"0"},{"fixed":"2.12.3"}]}]}}],"versions":["v2.12.2","v2.12.1","v2.12.0","v2.11.1","v2.11.0","v2.10.0","v2.9.1","v2.9.0","v2.8.1","v2.8.0","v2.7.1","v2.7.0","v2.6.0","v2.5.1","v2.5.0","v2.4.0","v2.3.0","v2.2.1","v2.2.0","v2.1.2","v2.1.0","v2.1.1","v2.0.2","v2.0.1","v2.0.0","v1.17.4","v1.17.3","v1.17.2","v1.17.1","v1.17.0","v1.16.1","v1.16.0","v1.15.2","v1.15.1","v1.15.0","v1.14.5","v1.12.1","v1.12.0","v1.11.3","v1.11.2","v1.11.1","v1.11.0","v1.10.7","v1.10.6","v1.10.5","v1.10.4","v1.10.3","v1.10.2","v1.10.1","v1.10.0","v1.9.1","v1.9.0","v1.8.2","v1.8.1","v1.8.0","v1.7.3","v1.7.2","v1.7.1","v1.7.0","v1.6.1","v1.6.0","v1.5.2","v1.5.1","v1.5.0","v1.4.2","v1.4.1","v1.4.0","v1.3.3","v1.3.2","v1.3.1","v1.3.0","v1.2.0","v1.1.1","v1.1.0","v1.0.3","v1.0.2","v1.0.1","v1.0.0","v1.0.0-beta.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59188.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}