---
id: CVE-2024-39123
aliases:
  - GHSA-j22r-3rf3-cv25
  - PYSEC-2026-1230
title: Calibre-Web Cross Site Scripting (XSS)
summary: Calibre-Web Cross Site Scripting (XSS)
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'
vendor: calibreweb
product: calibreweb
ecosystem: pip
affected:
  - 'calibreweb >= 0.6.0, <= 0.6.21'
published: '2024-07-19'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-j22r-3rf3-cv25'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-39123'
  - url: 'https://github.com/janeczku/calibre-web'
  - url: >-
      https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123
tags:
  - osv
  - pip
  - exploit-available
epss: 0.23069
epssPercentile: 0.97684
ingestedAt: '2026-07-08T18:25:50.533Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/theexploiters/CVE-2024-39123-Exploit'
  checkedAt: '2026-09-26T09:05:31.434Z'
exploitAvailable: true
---

## Overview

In janeczku Calibre-Web 0.6.0 to 0.6.21, the edit_book_comments function is vulnerable to Cross Site Scripting (XSS) due to improper sanitization performed by the clean_string function. The vulnerability arises from the way the clean_string function handles HTML sanitization.

## Affected packages

- `calibreweb >= 0.6.0, <= 0.6.21`

## Remediation

Refer to the advisory for the patched release.
