{"id":"CVE-2024-39123","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":["GHSA-j22r-3rf3-cv25","PYSEC-2026-1230"],"modified":"2026-08-12T03:51:30.669000951Z","published":"2024-07-19T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39123.json"},"references":[{"type":"WEB","url":"https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39123.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39123"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/janeczku/calibre-web","events":[{"introduced":"d81cb2927abcba3c4d198ecce9dca78550f676e1"},{"last_affected":"c45188beb22adc5416bb8fd73fa23bf5270f7759"}],"database_specific":{"extracted_events":[{"introduced":"0.6.0"},{"last_affected":"0.6.21"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*"}}],"versions":["0.6.21","0.6.20","0.6.19","0.6.18","0.6.17","0.6.16","0.6.15","0.6.14","0.6.13","0.6.12","0.6.11","0.6.10","0.6.9","0.6.8","0.6.7","0.6.6","0.6.5","0.6.3","0.6.2","0.6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39123.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}