{"cve":"CVE-2021-3988","nvd":{"published":"2024-11-15T11:15:06.877","modified":"2026-06-17T04:06:20.890","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1},"cwes":["CWE-79"],"references":["https://github.com/janeczku/calibre-web/commit/7ad419dc8c12180e842a82118f4866ac3d074bc5","https://huntr.com/bounties/fa4c8fd1-7846-4dad-9112-2c07461f0609"],"products":["janeczku:calibre-web"],"source":"nvd","synced_at":"2026-10-19T21:57:07.693694550+00:00"},"epss":{"cve":"CVE-2021-3988","score":0.0038,"percentile":0.31978,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r735-9gc6-2hvq","url":"https://osv.dev/vulnerability/GHSA-r735-9gc6-2hvq","summary":"Cross-site Scripting (XSS) - DOM in janeczku/calibre-web","modified":"2026-07-07T17:56:38.666694027Z","packages":[{"ecosystem":"PyPI","name":"calibreweb","purl":"pkg:pypi/calibreweb","ranges":["<0.6.15"],"fixed":["0.6.15"]}]},{"id":"PYSEC-2026-1236","url":"https://osv.dev/vulnerability/PYSEC-2026-1236","summary":"Cross-site Scripting (XSS) - DOM in janeczku/calibre-web","modified":"2026-07-07T17:47:24.660609975Z","packages":[{"ecosystem":"PyPI","name":"calibreweb","purl":"pkg:pypi/calibreweb","ranges":["<0.6.15"],"fixed":["0.6.15"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}