CVE-2021-3988
JSON

5.7medium

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

Severity
5.7medium CVSS:3.0 by @huntr_ai
Exploit likelihood
0.38% (higher than 34% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-r735-9gc6-2hvqPYSEC-2026-1236

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.

Affected

Product or packageVersionsReported by
janeczku janeczku/calibre-webfrom unspecified up to latestCVE List
janeczku calibre-webbefore 0.6.15CVE List, NVD
calibreweb (PyPI)before 0.6.15GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai5.7medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Existe una vulnerabilidad de Cross-site Scripting (XSS) en janeczku/calibre-web, específicamente en el archivo `edit_books.js`. La vulnerabilidad se produce al editar las propiedades de un libro, como cargar una portada o un formato. El código afectado inserta directamente la entrada del usuario en el DOM sin la limpieza adecuada, lo que permite a los atacantes ejecutar código JavaScript arbitrario. Esto puede dar lugar a varios ataques, incluido el robo de cookies. El problema está presente en el código que maneja el evento de cambio `#btn-upload-cover`.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-3988 changed 2024-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-r735-9gc6-2hvq changed 2026-07-07CC-BY-4.0
NVDCVE-2021-3988 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1236 changed 2026-07-07CC-BY-4.0