# CVE-2026-25731: Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-06T20:14:35.822Z
- Modified: 2026-06-17T10:25:07.570Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

calibre is an e-book manager. Prior to 9.2.0, a Server-Side Template Injection (SSTI) vulnerability in Calibre's Templite templating engine allows arbitrary code execution when a user converts an ebook using a malicious custom template file via the --template-html or --template-html-index command-line options. This vulnerability is fixed in 9.2.0.

(As written by CVE List.)

## Affected

- kovidgoyal calibre: < 9.2.0
- calibre-ebook calibre: before 9.2.0

## References

- <https://github.com/kovidgoyal/calibre/security/advisories/GHSA-xrh9-w7qx-3gcc> (exploit, third-party-advisory)
- <https://github.com/kovidgoyal/calibre/commit/f0649b27512e987b95fcab2e1e0a3bcdafc23379> (patch)

## Sources

- CVE List: [CVE-2026-25731](https://www.cve.org/CVERecord?id=CVE-2026-25731), CVE Terms of Use, modified 2026-02-06
- NVD: [CVE-2026-25731](https://nvd.nist.gov/vuln/detail/CVE-2026-25731), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25731 · Whole record: https://cve.day/CVE-2026-25731.json · Rebuilt by cve.day 2026-11-25T22:59:13.581Z
