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.
Published: 2024-11-15
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

No analysis available yet.

Remediation

No remediation available yet.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2024-3306 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.
Github GHSA Github GHSA GHSA-r735-9gc6-2hvq Cross-site Scripting (XSS) - DOM in janeczku/calibre-web
History

Wed, 20 Nov 2024 23:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 19 Nov 2024 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Janeczku
Janeczku calibre-web
CPEs cpe:2.3:a:janeczku:calibre-web:*:*:*:*:*:*:*:*
Vendors & Products Janeczku
Janeczku calibre-web
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}


Fri, 15 Nov 2024 11:00:00 +0000

Type Values Removed Values Added
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.
Title Cross-site Scripting (XSS) in janeczku/calibre-web
Weaknesses CWE-79
References
Metrics cvssV3_0

{'score': 5.7, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N'}


Subscriptions

Janeczku Calibre-web
cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published:

Updated: 2024-11-20T22:35:15.693Z

Reserved: 2021-11-20T12:40:59.399Z

Link: CVE-2021-3988

cve-icon Vulnrichment

Updated: 2024-11-20T22:35:09.582Z

cve-icon NVD

Status : Analyzed

Published: 2024-11-15T11:15:06.877

Modified: 2024-11-19T15:43:01.723

Link: CVE-2021-3988

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses