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

Published Oct 23, 2026
·
Updated

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.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Part-DB-server to a version that resolves this vulnerability.

    Fixed in 2.12.3

Event History

Oct 23, 2026
CVE Published
via MITRE·03:59 AM
Data Sourced
via MITRE·03:59 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue and who is exposed to the resulting script execution?

An authenticated attacker who can upload attachments can exploit the issue. Any user who views the malicious attachment inline can trigger execution of the embedded JavaScript in the Part-DB origin.

2

What upload behavior is required to bypass sanitization?

The attacker uploads an SVG containing a JavaScript payload while giving it a non-SVG filename extension, such as .jpg. The vulnerable server bases sanitization on the user-controlled extension rather than the file's actual content type.

3

Which versions are affected, and what version fixes the issue?

Part-DB-server versions before 2.12.3 are affected. The issue is patched in version 2.12.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203