Kotaemon Plaintext Password Storage Vulnerability in localStorage

Vulnerability

A vulnerability exists in Kotaemon version 0.11.0, where passwords are stored in plaintext in the client's localStorage. This issue is compounded by a separate vulnerability (CVE-2025-56526) that allows for stored cross-site scripting (XSS) through unsanitized PDF content rendering. An authenticated user with document upload permissions can exploit this to steal credentials, leading to session hijacking and a loss of trust in the application's document processing.

Impact

Exploitation of this vulnerability allows for the theft of plaintext usernames and passwords from localStorage, resulting in unauthorized access to user accounts and associated data.

Reproduction

To reproduce this vulnerability, upload a PDF containing a crafted image or table that exploits the XSS vulnerability (CVE-2025-56526) by injecting a script that accesses localStorage. Once the PDF is uploaded and viewed, the script will execute, exfiltrating the stored credentials to an external server.

Remediation

Users are advised to monitor the official Kotaemon repository for security patches and to avoid uploading untrusted documents.

Added: Nov 18, 2025, 5:25 PM
Updated: Nov 18, 2025, 5:25 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
6.3
remediation
0.0
relevance
1.0
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.