{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0.6.0"
              },
              {
                "last_affected": "0.6.21"
              }
            ]
          },
          "events": [
            {
              "introduced": "d81cb2927abcba3c4d198ecce9dca78550f676e1"
            },
            {
              "last_affected": "c45188beb22adc5416bb8fd73fa23bf5270f7759"
            }
          ],
          "repo": "https://github.com/janeczku/calibre-web",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2024-39123",
  "modified": "2026-03-13T21:47:42.877144366Z",
  "published": "2024-07-19T20:15:07.797Z",
  "references": [
    {
      "type": "EVIDENCE",
      "url": "https://github.com/pentesttoolscom/vulnerability-research/tree/master/CVE-2024-39123"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}