# CVE-2026-59188: Part-DB Part-DB-server stored XSS via SVG extension spoofing

Source: https://junglewise.ai/threats/cve-2026-59188-part-db-is-an-open-source-inventory-management-system-for  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-23. Updated: 2026-10-23  
License: CC BY 4.0 with a link back

CVE-2026-59188 · Severity: medium · CVSS 5.4 · Published 2026-10-23

Part-DB is an open source inventory management system for electronic components. An authenticated attacker can upload a malicious SVG file with embedded JavaScript using a fake filename extension (like .jpg), bypassing the system's sanitization checks. When other users view the attachment, the script executes in their browser with access to their session, enabling account takeover and credential theft.

Vendors: [Part-DB](https://junglewise.ai/threats/vendors/part-db).

## Quick answers

**Is CVE-2026-59188 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59188 being exploited in the wild.

**How severe is CVE-2026-59188?** Medium severity, with a CVSS score of 5.4, published 23 October 2026.

**Which products and versions are affected?** Part-DB-server <= 2.12.2.

**Is there a fix for CVE-2026-59188?** Yes: fixed in 2.12.3. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-59188 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-59188?** Check whether you run Part-DB-server at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 2.12.3

## Technical details

The vulnerability is a stored XSS (CWE-79) caused by reliance on user-controlled filename extensions rather than actual file content to determine whether SVG sanitization is needed. An authenticated attacker uploads an SVG payload with a non-SVG extension, passes the extension check, and when viewed inline the server serves it with Content-Type: image/svg+xml, causing browser script execution in the Part-DB origin. The fix detects actual MIME type via file magic bytes and applies proper SVG sanitization regardless of filename.

## Affected products

- Part-DB Part-DB-server <= 2.12.2

## Timeline

- 2026-07-19: disclosed
- 2026-06-20: patched

## References

- [https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3](https://github.com/Part-DB/Part-DB-server/releases/tag/v2.12.3)
- [https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j](https://github.com/Part-DB/Part-DB-server/security/advisories/GHSA-2vhp-c958-m47j)
