{"id":"PYSEC-2026-1230","summary":"Calibre-Web Cross Site Scripting (XSS)","details":"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.","aliases":["CVE-2024-39123","GHSA-j22r-3rf3-cv25"],"modified":"2026-07-07T17:47:33.623366523Z","published":"2026-07-07T14:34:37.138202Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39123"},{"type":"PACKAGE","url":"https://github.com/janeczku/calibre-web"},{"type":"WEB","url":"https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123"},{"type":"PACKAGE","url":"https://pypi.org/project/calibreweb"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-j22r-3rf3-cv25"}],"affected":[{"package":{"name":"calibreweb","ecosystem":"PyPI","purl":"pkg:pypi/calibreweb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.0"},{"last_affected":"0.6.21"}]}],"versions":["0.6.12","0.6.13","0.6.14","0.6.15","0.6.16","0.6.17","0.6.18","0.6.19","0.6.20","0.6.21"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/calibreweb/PYSEC-2026-1230.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}]}