CVE-2025-46338: Audiobookshelf Vulnerable to Cross-Site-Scripting Reflected via POST Request in /api/upload

Published Apr 29, 2025
·
Updated

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

2 affected components
Audiobookshelf Audiobookshelf<2.21.0
Audiobookshelf Audiobookshelf<2.21.0

Event History

Apr 29, 2025
CVE Published
via MITRE·04:34 AM
Data Sourced
via MITRE·04:34 AM
DescriptionWeakness
Oct 7, 57345
Event
via FIRST·08:56 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

What software versions are affected by CVE-2025-46338?

CVE-2025-46338 affects all versions of Audiobookshelf prior to version 2.21.0.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203