Advisory

GHSA-r735-9gc6-2hvq

Also known as: CVE-2021-3988, PYSEC-2026-1236

Summary

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

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-11-15 12:31 UTC
Modified
2026-07-07 17:56 UTC

Affected packages and fixes

calibreweb

PyPI · All systems

Affected

  • introduced 0, fixed 0.6.15 (ecosystem)

Fixed versions

0.6.15

Fix

  • Fixed version 0.6.15
    pip install --upgrade calibreweb==0.6.15

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences