{"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.97682,"ingestedAt":"2026-07-08T18:25:50.533Z","exploits":{"github":1,"githubRepos":["https://github.com/theexploiters/CVE-2024-39123-Exploit"],"checkedAt":"2026-09-25T08:20:43.293Z"},"exploitAvailable":true,"slug":"CVE-2024-39123","body":"## Overview\n\nIn 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.\n\n## Affected packages\n\n- `calibreweb >= 0.6.0, <= 0.6.21`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"twilight","depthScore":46,"depthScoreParts":{"impact":29.7,"likelihood":4.6,"exploitation":12,"ransomware":0},"changes":[{"seq":4724,"id":"CVE-2024-39123","ts":1788887202499,"field":"exploit_available","old":"false","new":"true"},{"seq":3607,"id":"CVE-2024-39123","ts":1788886318624,"field":"exploit_available","old":"true","new":"false"},{"seq":2461,"id":"CVE-2024-39123","ts":1788882987227,"field":"exploit_available","old":"false","new":"true"},{"seq":1490,"id":"CVE-2024-39123","ts":1788882400686,"field":"exploit_available","old":"true","new":"false"},{"seq":604,"id":"CVE-2024-39123","ts":1788881837176,"field":"exploit_available","old":"false","new":"true"}]}