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 package | Versions | Reported by |
|---|---|---|
| janeczku janeczku/calibre-web | from unspecified up to latest | CVE List |
| janeczku calibre-web | before 0.6.15 | CVE List, NVD |
| calibreweb (PyPI) | before 0.6.15 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| @huntr_ai | 5.7medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| PyPA Advisory Database | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3988 changed 2024-11-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r735-9gc6-2hvq changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2021-3988 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1236 changed 2026-07-07 | CC-BY-4.0 |