{"id":"GHSA-j22r-3rf3-cv25","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","PYSEC-2026-1230"],"modified":"2026-07-07T17:56:52.436754193Z","published":"2024-07-19T21:31:11Z","database_specific":{"cwe_ids":["CWE-79"],"github_reviewed_at":"2024-07-19T22:39:54Z","github_reviewed":true,"nvd_published_at":"2024-07-19T20:15:07Z","severity":"MODERATE"},"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"}],"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/github/advisory-database/blob/main/advisories/github-reviewed/2024/07/GHSA-j22r-3rf3-cv25/GHSA-j22r-3rf3-cv25.json"}}],"schema_version":"1.7.3","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"}]}