CVE-2021-3988
Python vulnerability analysis and mitigation

Overview

A Cross-site Scripting (XSS) vulnerability (CVE-2021-3988) exists in janeczku/calibre-web, specifically in the file edit_books.js. The vulnerability was discovered on November 15, 2024, affecting versions up to (excluding) 0.6.15. The vulnerability occurs when editing book properties, such as uploading a cover or a format, where user input is directly inserted into the DOM without proper sanitization (NVD, Huntr).

Technical details

The vulnerability exists in the code handling the #btn-upload-cover change event within the edit_books.js file. The affected code directly inserts user input into the DOM using the .html() method without proper sanitization, allowing attackers to execute arbitrary JavaScript code. The vulnerability has a CVSS v3.1 base score of 6.1 (MEDIUM) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

The vulnerability can lead to various attacks, with the primary risk being the potential theft of cookies and execution of arbitrary JavaScript code in the context of the user's browser session. This could allow attackers to perform actions on behalf of the victim user (Huntr).

Mitigation and workarounds

The vulnerability has been fixed in version 0.6.15 of calibre-web. The fix involves changing the code to use .text() instead of .html() when displaying filenames, preventing the execution of malicious JavaScript code (Github Patch).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management