CVE-2026-59188: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Part-DB Part-DB-server
Description
Part-DB-server versions prior to 2.12.3 contain a cross-site scripting (XSS) vulnerability due to improper sanitization of SVG files. The server relies on the file extension rather than actual content type to sanitize SVG uploads, allowing authenticated attackers to upload malicious SVG files with JavaScript payloads using non-SVG extensions. When users view these attachments inline, the embedded script executes in the context of the Part-DB origin. This vulnerability has been fixed in version 2.12.3.
CVSS v3.1
Score 5.4medium
Affected software
Part-DB
Part-DB-server
pkg:github/part-db/Part-DB-serverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Part-DB-server, an open source inventory management system, improperly sanitizes SVG files by checking only the user-controlled filename extension instead of the actual file content type. This flaw allows an authenticated attacker to upload a malicious SVG file containing JavaScript payloads with a non-SVG extension (e.g., .jpg), bypassing sanitization. When any user views the attachment inline, the browser interprets the file as image/svg+xml and executes the embedded script within the Part-DB origin, leading to a cross-site scripting vulnerability. The issue is resolved in Part-DB-server version 2.12.3.
Potential Impact
An authenticated attacker can upload malicious SVG files that execute arbitrary JavaScript in the context of the Part-DB origin when viewed by any user. This can lead to partial confidentiality and integrity impacts (e.g., theft of user data or session tokens, manipulation of page content) but does not affect availability. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, user interaction, and partial impact on confidentiality and integrity.
Mitigation Recommendations
Upgrade Part-DB-server to version 2.12.3 or later, where the vulnerability is patched. This update corrects the sanitization process to properly validate SVG file content rather than relying on file extensions. No other mitigations are specified or required once the patch is applied.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-02T19:53:48.830Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6adae3064d27ba8daaca106c
Added to database: 10/23/2026, 04:31:02 UTC
Last enriched: 10/23/2026, 04:45:33 UTC
Last updated: 10/23/2026, 04:45:52 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.