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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-29T04:34:44.713Z
- Modified: 2026-06-17T09:26:15.727Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- advplyr audiobookshelf: < 2.21.0
- audiobookshelf audiobookshelf: before 2.21.0

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/advplyr/audiobookshelf/security/advisories/GHSA-47g3-c5hx-2q3w> (exploit, vendor-advisory)
- <https://github.com/advplyr/audiobookshelf/commit/35870a01583b2947030f4e3d4ac769c3ff298386> (patch)

## Sources

- CVE List: [CVE-2025-46338](https://www.cve.org/CVERecord?id=CVE-2025-46338), CVE Terms of Use, modified 2025-04-29
- NVD: [CVE-2025-46338](https://nvd.nist.gov/vuln/detail/CVE-2025-46338), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-46338 · Whole record: https://cve.day/CVE-2025-46338.json · Rebuilt by cve.day 2026-11-25T22:58:57.068Z
