PyPi: Calibreweb

CVE-2021-3988

Safety vulnerability ID: 74257

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Nov 15, 2024 Updated at Nov 22, 2024
Scan your Python projects for vulnerabilities →

Advisory

Affected versions of cps in calibre-web are vulnerable to Cross-Site Scripting (CWE-79). This vulnerability allows attackers to inject malicious scripts through upload filename fields by exploiting the use of the .html() method to display filenames, potentially compromising user sessions or executing unauthorized actions. The attack vector involves uploading filenames containing malicious HTML or JavaScript, which are rendered unsafely in the DOM. The vulnerable methods include jQuery’s .html() in edit_books.js. To mitigate, upgrade to the version which replaces .html() with .text(), ensuring safe rendering of filenames.

Affected package

calibreweb

Latest version: 0.6.24

Web app for browsing, reading and downloading eBooks stored in a Calibre database.

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

MEDIUM 6.1

CVSS v3 Details

MEDIUM 6.1
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
NONE
User Interaction (UI)
REQUIRED
Scope (S)
CHANGED
Confidentiality Impact (C)
LOW
Integrity Impact (I)
LOW
Availability Availability (A)
NONE