Vulnerabilities in pkg:pypi/calibreweb

PACKAGE
Advisory Identifier: GHSA-pc5g-j9j7-p4q3
Advisory Summary

CVE-2025-65858 is a LOW cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Calibreweb libraries in the PyPI ecosystem. The issue involves calibre-web has a stored cross-site scripting (xss) vulnerability via the 'username' field during user creation. Remediation is available in the latest vendor maintenance releases.

18 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/calibreweb

18 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/calibreweb. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pc5g-j9j7-p4q3 CVE-2025-65858 LOW Calibre-Web Has a Stored Cross-Site Scripting (XSS) Vulnerability via the 'username' Field During User Creation
GHSA-2g7m-ph9x-7q7m CVE-2025-6998 HIGH Calibre Web and Autocaliweb have a ReDoS vulnerability
GHSA-qc4j-v7h6-xr5h CVE-2025-7404 MODERATE Calibre Web and Autocaliweb have OS Command Injection vulnerability
GHSA-r735-9gc6-2hvq CVE-2021-3988 MODERATE Cross-site Scripting (XSS) - DOM in janeczku/calibre-web
GHSA-m982-h4f8-g4hf CVE-2021-3986 MODERATE Generation of Error Message Containing Sensitive Information in janeczku/calibre-web
GHSA-h56g-v4vp-q9q6 CVE-2022-0352 MODERATE Cross-site Scripting in calibreweb
GHSA-4w8p-x6g8-fv64 CVE-2022-0339 MODERATE Server-Side Request Forgery in calibreweb
GHSA-wrp6-9w7f-3wxg CVE-2021-4170 MODERATE calibre-web is vulnerable to Cross-site Scripting
GHSA-vgmw-9cww-qq99 CVE-2022-0273 HIGH Incorrect Authorization in calibreweb
GHSA-fj5v-w2jp-wqvj CVE-2021-3987 MODERATE Improper Access Control in janeczku/calibre-web
GHSA-j22r-3rf3-cv25 CVE-2024-39123 MODERATE Calibre-Web Cross Site Scripting (XSS)
GHSA-mhmp-m6g7-7c24 CVE-2023-2106 HIGH Weak Password Requirements in calibreweb
GHSA-jg8w-wgx2-g7q4 CVE-2022-2525 MODERATE Improper Restriction of Excessive Authentication Attempts in calibreweb
GHSA-8ppf-x4gr-2x7g CVE-2022-30765 CRITICAL SQL injection in calibreweb
GHSA-2647-c639-qv2j CVE-2022-0766 CRITICAL Server-Side Request Forgery in calibreweb
GHSA-h65g-jfqg-2w6m CVE-2022-0767 CRITICAL Server-Side Request Forgery in calibreweb
GHSA-xp7p-3gx7-j6wx CVE-2021-4171 CRITICAL calibre-web is vulnerable to Business Logic Errors
GHSA-wxr6-29pv-ch68 CVE-2021-4164 HIGH calibre-web is vulnerable to Cross-Site Request Forgery (CSRF)

CVE-2025-65858 at a Glance

CVE Identifier CVE-2025-65858
GHSA Identifier GHSA-pc5g-j9j7-p4q3
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Calibreweb
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-65858

To remediate this vulnerability, upgrade all affected Calibreweb dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

calibreweb fixed: Latest secure release
pip install calibreweb>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show calibreweb

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-65858, inspect your installed packages using pip:

pip show calibreweb

Analyze the terminal output to locate any version of Calibreweb in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show calibreweb command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Calibreweb, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A Stored Cross-Site Scripting (XSS) vulnerability in Calibre-Web v0.6.25 allows attackers to inject malicious JavaScript into the 'username' field during user creation. The payload is stored unsanitized and later executed when the /ajax/listusers endpoint is accessed.

CVE-2025-65858 Affected Calibreweb Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
calibreweb
PyPI
≤ 0.6.25

References

Frequently Asked Questions

What is CVE-2025-65858?
CVE-2025-65858 is a security vulnerability in Calibreweb involving Calibre-Web Has a Stored Cross-Site Scripting (XSS) Vulnerability via the 'username' Field During User Creation under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Calibreweb versions are affected?
Affected versions include releases prior to current release patches across affected packages: calibreweb.
What version fixes CVE-2025-65858?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is calibreweb affected?
Yes, calibreweb is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-65858?
CVE-2025-65858 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check PyPI dependencies for CVE-2025-65858?
Run the dependency tree command: 'pip show calibreweb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pc5g-j9j7-p4q3",
  "modified" : "2025-12-02T17:37:08Z",
  "published" : "2025-12-02T15:30:32Z",
  "aliases" : [ "CVE-2025-65858" ],
  "summary" : "Calibre-Web Has a Stored Cross-Site Scripting (XSS) Vulnerability via the 'username' Field During User Creation",
  "details" : "A Stored Cross-Site Scripting (XSS) vulnerability in Calibre-Web v0.6.25 allows attackers to inject malicious JavaScript into the 'username' field during user creation. The payload is stored unsanitized and later executed when the /ajax/listusers endpoint is accessed.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "calibreweb"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.6.25"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65858"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/KhanhDuy155/calibre-web-CVE-2025-65858/blob/main/CVE-2025-65858.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/janeczku/calibre-web"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-02T17:37:08Z",
    "nvd_published_at" : "2025-12-02T14:16:25Z"
  }
}