CVE-2025-65858: Calibreweb Cross-Site Scripting Vulnerability
LOWCVE-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
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.
pip install calibreweb>=Latest secure release
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
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?
Which Calibreweb versions are affected?
What version fixes CVE-2025-65858?
Is calibreweb affected?
What CWE is associated with CVE-2025-65858?
How can I check PyPI dependencies for CVE-2025-65858?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}