{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25731 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-25731 is a high-severity code injection vulnerability in kovidgoyal calibre, published on 6 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-25731 and fix it if it is affected.\n\nWhat it is: CVE-2026-25731 is a high-severity code injection vulnerability in kovidgoyal calibre, published on 6 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-25731 exists.\n\nAffected product: kovidgoyal calibre. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-25731/ (Markdown: https://insights.sbomify.com/CVE-2026-25731/index.md)","id":"CVE-2026-25731","markdown":"https://insights.sbomify.com/CVE-2026-25731/index.md","name":"CVE-2026-25731","record":{"aliases":["DEBIAN-CVE-2026-25731","GHSA-xrh9-w7qx-3gcc","UBUNTU-CVE-2026-25731"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"E-book manager","requires_auth":"none","summary":"Attacker can execute arbitrary code by tricking a user into converting an ebook with a malicious custom template file.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"calibre","vendor":"calibre-ebook"}],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2026-02-06","github_poc":1,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-02-06T11:14:08Z","kind":"github_poc","ref":"https://github.com/dxlerYT/CVE-2026-25731","stars":4,"title":"Proof of Concept for a Server-Side Template Injection (SSTI) vulnerability in Calibre’s Templite engine (GHSA-xrh9-w7qx-3gcc). Demonstrates arbitrary Python code execution via user-supplied HTML export templates in affected versions (≤ 9.1.0)."}],"tier":"weaponised"},"has_fix":true,"headline":"Calibre Affected by Arbitrary Code Execution via Server-Side Template Injection in Calibre HTML Export","id":"CVE-2026-25731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"NiceGUI's Path Traversal via Unsanitized FileUpload.name Enables Arbitrary File Write","id":"CVE-2026-25732"},"packages":[],"prev":{"headline":"DeepAudit Affected by User Enumeration via Broken Access Control","id":"CVE-2026-25729"},"products":["calibre"],"published":"2026-02-06","related":[{"cvss_score":9.8,"headline":"Command injection in Calibre","id":"CVE-2011-4124","kev_date_added":null,"published":"2021-10-27"},{"cvss_score":9.8,"headline":"Privilege escalation in Calibre","id":"CVE-2011-4125","kev_date_added":null,"published":"2021-10-27"},{"cvss_score":9.3,"headline":"calibre: Path Traversal Vulnerability Enables Arbitrary File Write and Remote Code Execution","id":"CVE-2026-26064","kev_date_added":null,"published":"2026-02-20"},{"cvss_score":9.3,"headline":"calibre: Path Traversal can Lead to Arbitrary File Write and Potential Code Execution","id":"CVE-2026-26065","kev_date_added":null,"published":"2026-02-20"},{"cvss_score":8.6,"headline":"calibre has a Path Traversal Leading to Arbitrary File Write and Potential Code Execution","id":"CVE-2026-25635","kev_date_added":null,"published":"2026-02-06"},{"cvss_score":8.2,"headline":"calibre has a path traversal vulnerability","id":"CVE-2026-33206","kev_date_added":null,"published":"2026-03-27"},{"cvss_score":8.2,"headline":"calibre has a Path Traversal Leading to Arbitrary File Corruption and Code Execution","id":"CVE-2026-25636","kev_date_added":null,"published":"2026-02-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-06","vendors":["kovidgoyal"]},"summary":"Attacker can execute arbitrary code by tricking a user into converting an ebook with a malicious custom template file.","url":"https://insights.sbomify.com/CVE-2026-25731/"}