CVE-2026-45381
Stored XSS via unescaped backslashes in /search endpoint (pre‑2.17.2).
- CVSS 5.1
- CWE-79
- Input Validation and Sanitization
- Remote
Tautulli is a Python based monitoring and tracking tool for Plex Media Server. Prior to 2.17.2, the /search endpoint inserts its user-controlled query parameter into a JavaScript string in data/interfaces/default/search.html using manual escaping that handles quotes and slashes but not backslashes. A backslash-quote sequence can terminate the string, so an unauthenticated attacker can send a crafted link that executes script in the Tautulli web context when an authenticated user follows it. This issue is fixed in version 2.17.2.
- CWE
- CWE-79
- CVSS base score
- 5.1
- Published
- 2026-09-21
- OWASP
- A03 Injection
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Interface
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Parsing or Deserialization
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- Python
Solution
Upgrade Tautulli to version 2.17.2 (or later) to remediate the issue.
Vulnerable code sample
import html
def render_search_page(query: str) -> str:
# VULNERABLE: manual escaping does not handle backslashes
safe_query = query.replace('"', '\\"').replace('/', '\\/')
template = f'''
<html>
<head><title>Search</title></head>
<body>
<script>
var searchTerm = "{safe_query}";
console.log(searchTerm);
</script>
</body>
</html>
'''
return templatePatched code sample
import html
import json
def render_search_page(query: str) -> str:
# FIX: use json.dumps to safely escape all characters including backslashes
safe_query = json.dumps(query)[1:-1] # strip surrounding quotes
template = f'''
<html>
<head><title>Search</title></head>
<body>
<script>
var searchTerm = "{safe_query}";
console.log(searchTerm);
</script>
</body>
</html>
'''
return templateCite this entry
@misc{vaitp:cve202645381,
title = {{Stored XSS via unescaped backslashes in /search endpoint (pre‑2.17.2).}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-45381},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-45381/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
