CVE-2021-3988 MEDIUM

CVE-2021-3988: Cross-site Scripting (XSS) in janeczku/calibre-web

Vendor Janeczku
Product janeczku/calibre-web
Weakness CWE-79 · XSS
Published November 15, 2024
Last update November 20, 2024

CVSS base score

5.7/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality High
Integrity None

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

November 15, 2024 CVE published
November 20, 2024 Record updated