Skip to content

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

MediumCVSS 6.1 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
janeczku calibre-web < 0.6.15 0.6.15 Fixed
janeczku/calibre-web <= latest after latest Fixed
pypi calibreweb(PyPI) < 0.6.15; = 0.6.12; = 0.6.13; = 0.6.14 0.6.15 Fixed

Affected products

ProductAffected versionsFixed in
pypi calibreweb(PyPI) < 0.6.15 0.6.15
pypi calibreweb(PyPI) = 0.6.12 No fix listed
pypi calibreweb(PyPI) = 0.6.13 No fix listed
pypi calibreweb(PyPI) = 0.6.14 No fix listed
janeczku/calibre-web <= latest No fix listed
janeczku calibre-web < 0.6.15 0.6.15

References