{"id":"CVE-2025-46338","summary":"Audiobookshelf Vulnerable to Cross-Site-Scripting Reflected via POST Request in /api/upload","details":"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.","aliases":["GHSA-47g3-c5hx-2q3w"],"modified":"2026-04-02T12:48:26.406438Z","published":"2025-04-29T04:34:44.713Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46338.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-79"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46338.json"},{"type":"ADVISORY","url":"https://github.com/advplyr/audiobookshelf/security/advisories/GHSA-47g3-c5hx-2q3w"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46338"},{"type":"FIX","url":"https://github.com/advplyr/audiobookshelf/commit/35870a01583b2947030f4e3d4ac769c3ff298386"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/advplyr/audiobookshelf","events":[{"introduced":"0"},{"fixed":"fd84cd0d7f647705a49f300b9bdb940f9725e1a7"}]}],"versions":["0.9.61-beta","0.9.61-beta.0","v1.0.0","v1.1.10","v1.1.11","v1.1.12","v1.1.13","v1.1.14","v1.1.15","v1.1.8","v1.1.9","v1.2.1","v1.2.4","v1.2.5","v1.2.6","v1.2.8","v1.3.1","v1.3.3","v1.3.4","v1.4.0","v1.4.1","v1.4.11","v1.4.2","v1.4.4","v1.4.6","v1.4.7","v1.4.9","v1.5.0","v1.5.5","v1.6.0","v1.7.0","v1.7.1","v1.7.2","v2.0.1","v2.0.10","v2.0.11","v2.0.12","v2.0.13","v2.0.14","v2.0.15","v2.0.16","v2.0.17","v2.0.18","v2.0.19","v2.0.2","v2.0.20","v2.0.21","v2.0.22","v2.0.23","v2.0.24","v2.0.3","v2.0.4","v2.0.5","v2.0.6","v2.0.7","v2.0.8","v2.0.9","v2.1.0","v2.1.1","v2.1.2","v2.1.3","v2.1.4","v2.1.5","v2.10.0","v2.10.1","v2.11.0","v2.12.0","v2.12.1","v2.12.2","v2.12.3","v2.13.0","v2.13.1","v2.13.2","v2.13.3","v2.13.4","v2.14.0","v2.15.0","v2.15.1","v2.16.0","v2.16.1","v2.16.2","v2.17.0","v2.17.1","v2.17.2","v2.17.3","v2.17.4","v2.17.5","v2.17.6","v2.17.7","v2.18.0","v2.18.1","v2.19.0","v2.19.1","v2.19.2","v2.19.3","v2.19.4","v2.19.5","v2.2.0","v2.2.1","v2.2.10","v2.2.11","v2.2.12","v2.2.13","v2.2.14","v2.2.15","v2.2.16","v2.2.17","v2.2.18","v2.2.19","v2.2.2","v2.2.20","v2.2.21","v2.2.22","v2.2.23","v2.2.3","v2.2.4","v2.2.5","v2.2.6","v2.2.7","v2.2.8","v2.2.9","v2.20.0","v2.3.0","v2.3.1","v2.3.2","v2.3.3","v2.3.4","v2.3.5","v2.4.0","v2.4.1","v2.4.2","v2.4.3","v2.4.4","v2.5.0","v2.6.0","v2.7.0","v2.7.1","v2.7.2","v2.8.0","v2.8.1","v2.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46338.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}