{"id":"CVE-2024-39123","aliases":["CVE-2024-39123","GHSA-j22r-3rf3-cv25","PYSEC-2026-1230"],"related":[],"kind":"vulnerability","state":"published","title":"Calibre-Web Cross Site Scripting (XSS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En janeczku Calibre-Web 0.6.0 a 0.6.21, la función edit_book_comments es vulnerable a Cross Site Scripting (XSS) debido a una sanitización inadecuada realizada por la función clean_string. La vulnerabilidad surge de la forma en que la función clean_string maneja la sanitización de HTML.","source":"nvd"}],"published":"2024-07-19T00:00:00.000Z","modified":"2026-07-07T17:56:52.436Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.6.0","lastAffected":"0.6.21","status":"affected"}],"vendor":"janeczku","product":"calibre-web","cpe":"cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.6.0","status":"affected","lastAffected":"0.6.21"}],"ecosystem":"PyPI","package":"calibreweb","purl":"pkg:pypi/calibreweb","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.6.0","lastAffected":"0.6.21"}],"vendor":"janeczku","product":"calibre-web","cpe":"cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.6.0","status":"affected","lastAffected":"0.6.21"}],"ecosystem":"PyPI","package":"calibreweb","purl":"pkg:pypi/calibreweb","source":"pysec"}],"references":[{"url":"https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39123","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/janeczku/calibre-web","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/calibreweb","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-j22r-3rf3-cv25","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-23T15:47:04.835Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39123","url":"https://www.cve.org/CVERecord?id=CVE-2024-39123","licence":"CVE Terms of Use","modified":"2024-08-02T04:19:20.524Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j22r-3rf3-cv25","url":"https://github.com/advisories/GHSA-j22r-3rf3-cv25","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:52.436Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39123","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39123","licence":"Public domain","modified":"2026-06-17T07:41:26.553Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1230","url":"https://osv.dev/vulnerability/PYSEC-2026-1230","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:33.623Z"}],"updatedAt":"2026-11-25T22:58:43.066Z","epss":{"score":0.34053,"percentile":0.98431,"date":"2026-12-01T12:00:22.000Z"}}