# CVE-2024-39123: Calibre-Web Cross Site Scripting (XSS)

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 34.1%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-19T00:00:00.000Z
- Modified: 2026-07-07T17:56:52.436Z
- Also known as: GHSA-j22r-3rf3-cv25, PYSEC-2026-1230
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- janeczku calibre-web: from 0.6.0 up to 0.6.21
- calibreweb (PyPI): from 0.6.0 up to 0.6.21

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39123> (advisory)
- <https://github.com/janeczku/calibre-web> (package)
- <https://pypi.org/project/calibreweb> (package)
- <https://github.com/advisories/GHSA-j22r-3rf3-cv25> (advisory)

## Sources

- CVE List: [CVE-2024-39123](https://www.cve.org/CVERecord?id=CVE-2024-39123), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-j22r-3rf3-cv25](https://github.com/advisories/GHSA-j22r-3rf3-cv25), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-39123](https://nvd.nist.gov/vuln/detail/CVE-2024-39123), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1230](https://osv.dev/vulnerability/PYSEC-2026-1230), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-39123 · Whole record: https://cve.day/CVE-2024-39123.json · Rebuilt by cve.day 2026-11-25T22:58:43.066Z
