CVE-2024-39123
Published: 19 July 2024
Summary
CVE-2024-39123 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Janeczku Calibre-Web. Its CVSS base score is 5.4 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique JavaScript (T1059.007); ranked in the top 5.0% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
In janeczku Calibre-Web versions 0.6.0 through 0.6.21, the edit_book_comments function contains a cross-site scripting vulnerability (CWE-79) caused by insufficient HTML sanitization inside the clean_string function. The flaw received a CVSS 3.1 score of 5.4 and permits injection of script content when book comments are edited.
An authenticated user with low privileges can supply crafted input that is later rendered for other users; because the scope is changed, successful exploitation can expose or manipulate limited data within the affected Calibre-Web instance after a victim interacts with the page.
Public references consist of technical write-ups hosted in a GitHub repository that document the discovery but do not include official patch guidance or mitigation steps from the project maintainers.
EPSS for the CVE rose from a low baseline to a peak of 0.2712 before receding to the current value of 0.1645, indicating measurable post-disclosure exploitation interest.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2369
Vulnerability 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.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
XSS vulnerability enables injection of malicious JavaScript into the web application, facilitating JavaScript execution (T1059.007), browser session hijacking (T1185), exploitation of public-facing web applications (T1190), and exploitation for client execution (T1203).
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.