CVE-2025-46338: Audiobookshelf Vulnerable to Cross-Site-Scripting Reflected via POST Request in /api/upload
Audiobookshelf is a self-hosted audiobook and podcast server. Prior to version 2.21.0, an improper input handling vulnerability in the /api/upload endpoint allows an attacker to perform a reflected cross-site scripting (XSS) attack by submitting malicious payloads in the libraryId field. The unsanitized input is reflected in the server’s error message, enabling arbitrary JavaScript execution in a victim's browser. This issue has been patched in version 2.21.0.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2025-46338?
CVE-2025-46338 has a medium severity rating due to its ability to allow attackers to perform reflected cross-site scripting (XSS) attacks.
How do I fix CVE-2025-46338?
To fix CVE-2025-46338, update Audiobookshelf to version 2.21.0 or later which addresses the improper input handling vulnerability.
What software versions are affected by CVE-2025-46338?
CVE-2025-46338 affects all versions of Audiobookshelf prior to version 2.21.0.
Can CVE-2025-46338 lead to data breaches?
Yes, CVE-2025-46338 can lead to data breaches as it allows attackers to execute arbitrary scripts in the context of the user's browser.
What is the attack vector for CVE-2025-46338?
The attack vector for CVE-2025-46338 is the `/api/upload` endpoint, where an attacker can submit malicious payloads using the `libraryId` parameter.