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.
Published: 2026-10-23
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored XSS in Attachment Viewer
Action: Patch
AI Analysis

Impact

Part‑DB‑server sanitizes SVG files solely based on the filename extension rather than the actual file content type. An authenticated attacker can upload a malicious SVG containing a JavaScript payload with a non‑SVG extension such as .jpg. When a user opens the attachment inline, the server sends the response with Content‑Type image/svg+xml, causing the browser to execute the embedded script in the Part‑DB origin. The result is a stored cross‑site scripting vulnerability that allows the attacker to run arbitrary code in the context of the victim’s browser, potentially compromising credentials, data, or system functionality.

Affected Systems

The vulnerability affects the open‑source inventory management system Part‑DB‑server prior to version 2.12.3. Any deployment of Part‑DB‑server that has not applied the 2.12.3 release is potentially vulnerable.

Risk and Exploitability

The CVSS score is 5.4, indicating a moderate risk. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. The primary attack requires an authenticated user with permission to upload attachments. Once the malicious file is uploaded, any subsequent user who views the attachment inline triggers the stored XSS. Because the exploit depends on the upload privilege, it is not possible to hijack accounts without prior authentication, but once authenticated, the attacker can abuse the stored scripts against other users.

Generated by OpenCVE AI on October 23, 2026 at 05:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to Part‑DB‑server 2.12.3 or later to apply the upstream fix that validates file content correctly.
  • Restrict uploaded file types to genuine SVG by validating MIME type and refusing files that come from external or unsanctioned MIME types.
  • Implement a Content Security Policy that disallows execution of inline scripts and restricts script sources to trusted origins to mitigate the impact of any remaining XSS.

Generated by OpenCVE AI on October 23, 2026 at 05:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 29 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 23 Oct 2026 15:00:00 +0000

Type Values Removed Values Added
First Time appeared Part-db
Part-db part-db
Vendors & Products Part-db
Part-db part-db

Fri, 23 Oct 2026 04:30:00 +0000

Type Values Removed Values Added
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.
Title Part-DB: SVG Sanitization Bypass via Extension Spoofing Leads to Stored XSS in Attachment Viewer
Weaknesses CWE-434
CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-29T12:49:30.293Z

Reserved: 2026-07-02T19:53:48.830Z

Link: CVE-2026-59188

cve-icon Vulnrichment

Updated: 2026-10-29T12:49:12.779Z

cve-icon NVD

Status : Deferred

Published: 2026-10-23T05:17:17.937

Modified: 2026-10-29T13:17:13.693

Link: CVE-2026-59188

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T14:39:50Z

Weaknesses
  • CWE-434

    Unrestricted Upload of File with Dangerous Type

  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')