CVE-2021-3988
Cross-site Scripting (XSS) in janeczku/calibre-web
6.1CVSSMEDIUM
Description
A Cross-site Scripting (XSS) vulnerability exists in janeczku/calibre-web, specifically in the file `edit_books.js`. The vulnerability occurs when editing book properties, such as uploading a cover or a format. The affected code directly inserts user input into the DOM without proper sanitization, allowing attackers to execute arbitrary JavaScript code. This can lead to various attacks, including stealing cookies. The issue is present in the code handling the `#btn-upload-cover` change event.
CVSS Vector Breakdown
Exploitability
AV:NAttack VectorNetwork
AC:LAttack ComplexityLow
PR:NPrivileges RequiredNone
UI:RUser InteractionRequired
Scope
S:CScopeChanged
Impact
C:LConfidentialityLow
I:LIntegrityLow
A:NAvailabilityNone
Weaknesses
Affected Products
janeczkuaka calibre-web, janeczku/calibre-web
Attack Graph
Products CVE Techniques Tactics
Click technique nodes to view MITRE ATT&CK details. Scroll to zoom, drag to pan.
Exploitability
Official Patch Available
MITRE ATT&CK
2 techniques Execution
Initial Access
References
https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609
huntr.com
https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5
github.com
https://nvd.nist.gov/vuln/detail/CVE-2021-3988
nvd.nist.gov
and 1 more references View all →
Timeline
Published
Nov 15, 2024
Last Updated
Nov 19, 2024
Unlock Complete Vulnerability Intelligence
Get the full picture for CVE-2021-3988 and every CVE in our database. Create a free account — no credit card required.
Create Free AccountPlain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows