~ / search / GHSA-r735-9gc6-2hvq

GHSA-r735-9gc6-2hvq

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

Source: GitHub Advisory Database (reviewed) Moderate CVE-2021-3988

Packages

EcosystemPackageAffectedFixed in
PyPI calibreweb < 0.6.15 0.6.15

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.