Calibre-Web Cross Site Scripting (XSS)
Date: 2024-07
Affected: pip/calibreweb
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2024-39123
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):