{"id":"CVE-2024-39123","aliases":["EUVD-2024-2369","GHSA-j22r-3rf3-cv25","PYSEC-2026-1230"],"status":"published","title":"Calibre-Web Cross Site Scripting (XSS)","description":"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.","severity":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.23069,"percentile":0.97785,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-79"],"published":"2024-07-19T00:00:00Z","modified":"2026-10-28T02:31:11Z","exploits":[{"source":"pocgithub","id":"theexploiters/CVE-2024-39123-Exploit","title":"theexploiters/CVE-2024-39123-Exploit","date":"2025-01-10","url":"https://github.com/theexploiters/CVE-2024-39123-Exploit"}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"calibreweb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.0"},{"last_affected":"0.6.21"}]}]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"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"]}],"products":[{"vendor":"janeczku","product":"calibre-web"}],"references":[{"url":"https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39123","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-j22r-3rf3-cv25","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39123.json","tags":["advisory"]},{"url":"https://github.com/janeczku/calibre-web","tags":["package"]},{"url":"https://pypi.org/project/calibreweb","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-39123","description":"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.","status":"published","published":"2024-07-19T00:00:00Z","modified":"2024-08-02T04:19:20.524Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:19.28149Z"}],"euvd":[{"id":"EUVD-2024-2369","description":"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.","status":"published","published":"2024-07-19T00:00:00Z","modified":"2024-08-02T04:19:20Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T03:50:18.462935Z"}],"ghsa":[{"id":"GHSA-j22r-3rf3-cv25","title":"Calibre-Web Cross Site Scripting (XSS)","description":"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.","status":"published","published":"2024-07-19T21:31:11Z","modified":"2024-08-08T05:09:14Z","cvss":[{"version":"4.0","score":5.1,"vector":"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","level":"medium"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:58.427757Z"}],"nvd":[{"id":"CVE-2024-39123","description":"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.","status":"published","published":"2024-07-19T20:15:07.797Z","modified":"2026-06-17T07:41:26.553Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:10:13.413515Z"}],"osv":[{"id":"CVE-2024-39123","description":"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.","status":"published","published":"2024-07-19T00:00:00Z","modified":"2026-10-28T02:31:11.265724119Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:41.618074Z"},{"id":"GHSA-j22r-3rf3-cv25","title":"Calibre-Web Cross Site Scripting (XSS)","description":"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.","status":"published","published":"2024-07-19T21:31:11Z","modified":"2026-07-07T17:56:52.436754193Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":5.1,"vector":"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","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:49.621585Z"},{"id":"PYSEC-2026-1230","title":"Calibre-Web Cross Site Scripting (XSS)","description":"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.","status":"published","published":"2026-07-07T14:34:37.138202Z","modified":"2026-07-07T17:47:33.623366523Z","cvss":[{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"medium"},{"version":"4.0","score":5.1,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T15:52:54.622769Z"}]}}
