CVE-2026-136917 in Part-DB
Summary
by MITRE • 11/25/2026
Part-DB (Part-DB-server) before 2.20.6 contains an open redirect vulnerability in several controllers that pass user-supplied _redirect or redirect_back parameters to redirect() without validating local paths. Attackers can craft links to endpoints like /tools/batch_eda_edit using scheme-relative or protocol-relative values that bypass the nelmio_security guard, sending authenticated victims to attacker-controlled phishing sites.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
Part-DB is an open-source inventory management system designed for electronic components and hardware parts, widely used by engineers, hobbyists, and small businesses to track stock levels and manage supply chains. The vulnerability identified in versions prior to 2.20.6 affects several controllers within the application that handle user navigation requests through parameters such as _redirect or redirect_back. These parameters are intended to facilitate seamless user experience by directing users back to previous pages or specific internal resources after an action is completed. However, the implementation fails to adequately validate whether these destination paths correspond to local, trusted endpoints within the Part-DB application itself. This lack of strict validation allows attackers to inject arbitrary URLs that point to external domains under their control.
The technical flaw stems from a classic open redirect vulnerability where user-supplied input is directly passed to the framework's redirection function without sufficient sanitization or allow-listing checks against local paths. By utilizing scheme-relative or protocol-relative URL formats, such as //evil.com/path, attackers can bypass certain security guards like nelmio_security that may only inspect absolute URLs with explicit schemes. This technique exploits how web browsers and HTTP clients interpret relative references, effectively tricking the application into redirecting traffic to an external destination while maintaining a visual appearance of legitimacy or continuity within the Part-DB interface during the initial phase of the request.
The operational impact of this vulnerability is significant due to its potential for social engineering attacks. Since the redirection originates from a trusted domain associated with Part-DB, victims are more likely to trust the link and proceed without suspicion. Attackers can leverage this mechanism to host phishing pages that mimic legitimate login portals or administrative interfaces, aiming to harvest credentials, session tokens, or other sensitive information from authenticated users. This is particularly dangerous in environments where administrators handle critical inventory data or system configurations, as compromised accounts could lead to broader security breaches within the organization's infrastructure.
To mitigate this risk, it is imperative that all redirect parameters be validated against a strict allow-list of known local paths before execution. Developers should implement server-side checks that ensure the target URL belongs exclusively to the application’s own domain and does not contain external hostnames or protocol-relative prefixes. Additionally, employing Content Security Policy headers can help mitigate some downstream effects by restricting where frames and redirects are allowed to navigate. Users running affected versions of Part-DB must upgrade immediately to version 2.20.6 or later, which includes patches for this open redirect flaw. Regular security audits and code reviews focusing on input validation practices will further reduce the likelihood of similar vulnerabilities in future releases.
This vulnerability aligns with CWE-601, Open Redirect, a common web application weakness where an attacker can manipulate navigation to direct users to malicious sites. It also maps to MITRE ATT&CK technique T1566.002, Spearphishing Link, which describes how attackers use links in phishing emails or messages to trick victims into visiting malicious websites that steal credentials or install malware. Understanding these mappings helps security teams prioritize remediation efforts and enhance monitoring for suspicious redirect patterns originating from trusted applications.