All reports
Medium

Cross-site Scripting (XSS) - DOM in janeczku/calibre-web

Affected versions

Version ranges need review.

Affected versions
< 0.6.15
Fixed version
0.6.15
Affected versions
<0.6.15 || =0.6.12 || =0.6.13 || =0.6.14
Fixed version
0.6.15

Exploitation

CVE-2021-3988

Probability of exploitation in the next 30 days: 0.38%

FIRST EPSS · 2026-11-23

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.

Links