CVE-2025-65858: Calibreweb Cross-Site Scripting Vulnerability

LOW
Advisory Identifier: GHSA-pc5g-j9j7-p4q3
CWE-79
Published
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.

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"
  }
}