CVE-2021-3988

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*

History

19 Nov 2024, 15:43

Type Values Removed Values Added
First Time Janeczku
Janeczku calibre-web
CVSS v2 : unknown
v3 : 5.7
v2 : unknown
v3 : 6.1
References () https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5 - () https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5 - Patch
References () https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609 - () https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609 - Exploit
CPE cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*

15 Nov 2024, 13:58

Type Values Removed Values Added
Summary
  • (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`.

15 Nov 2024, 11:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-11-15 11:15

Updated : 2024-11-19 15:43


NVD link : CVE-2021-3988

Mitre link : CVE-2021-3988

CVE.ORG link : CVE-2021-3988


JSON object : View

Products Affected

janeczku

  • calibre-web
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')