Audiobookshelf Stored Cross-Site Scripting Vulnerability in Login Page

Vulnerability

A stored cross-site scripting vulnerability has been identified in Audiobookshelf versions prior to 2.33.0. This issue arises from inadequate sanitization of the 'authLoginCustomMessage' field in the '/api/auth-settings' endpoint. An attacker with administrative rights can inject arbitrary HTML or JavaScript, which is then executed on the login page for all users. Although the exploitation requires user interaction, it allows for the interception of credentials entered in the login form, potentially leading to unauthorized account access.

Impact

Exploitation of this vulnerability allows injected scripts to execute in the context of the user visiting the login page, capturing usernames and passwords entered into the login form. This could result in a complete compromise of the affected user's account.

Reproduction

To reproduce this vulnerability, an authenticated administrator can send a request to the '/api/auth-settings' endpoint with a malicious 'authLoginCustomMessage' payload. Once this message is saved, the injected script will execute for all users who visit the login page.

Remediation

Users are advised to update to Audiobookshelf version 2.33.0 or later.

Added: May 11, 2026, 8:34 PM
Updated: May 11, 2026, 8:34 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
1.7
exploitability
5.9
remediation
7.7
relevance
8.0
threat
6.4
urgency
2.9
incentive
0.0

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