# CVE-2026-59188: Part-DB: SVG Sanitization Bypass via Extension Spoofing Leads to Stored XSS in Attachment Viewer

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-10-23T03:59:11.068Z
- Modified: 2026-10-29T13:17:13.693Z
- Weaknesses: CWE-79, CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Part-DB Part-DB-server: < 2.12.3

## References

- <https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j>
- <https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3>

## Sources

- CVE List: [CVE-2026-59188](https://www.cve.org/CVERecord?id=CVE-2026-59188), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-59188](https://nvd.nist.gov/vuln/detail/CVE-2026-59188), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-59188 · Whole record: https://cve.day/CVE-2026-59188.json · Rebuilt by cve.day 2026-11-25T22:59:46.857Z
