Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. calibreweb
  4. ›
  5. CVE-2021-3988

CVE-2021-3988: Cross-site Scripting (XSS) - DOM in janeczku/calibre-web

November 15, 2024 (updated November 19, 2024)

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

  • github.com/advisories/GHSA-r735-9gc6-2hvq
  • github.com/janeczku/calibre-web
  • github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5
  • huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609
  • nvd.nist.gov/vuln/detail/CVE-2021-3988

Code Behaviors & Features

Detect and mitigate CVE-2021-3988 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.15

Fixed versions

  • 0.6.15

Solution

Upgrade to version 0.6.15 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/calibreweb/CVE-2021-3988.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:10 +0000.