{"answers":{"affected":"3 open source packages ship an affected version, including calibreweb. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-65858 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-65858 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-65858 is a low-severity cross-site scripting vulnerability in n/a, published on 2 Dec 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-65858 and fix it if it is affected.\n\nWhat it is: CVE-2025-65858 is a low-severity cross-site scripting vulnerability in n/a, published on 2 Dec 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-65858 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- calibreweb (PyPI): affected all versions up to 0.6.25; no fix listed\n- calibreweb (PyPI): affected all versions up to 0.6.25; no fix listed\n- calibreweb (PyPI): affected all versions up to 0.6.25; no fix listed\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-2025-65858/ (Markdown: https://insights.sbomify.com/CVE-2025-65858/index.md)","id":"CVE-2025-65858","markdown":"https://insights.sbomify.com/CVE-2025-65858/index.md","name":"CVE-2025-65858","record":{"aliases":["GHSA-pc5g-j9j7-p4q3","PYSEC-2026-1234"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Calibre-Web","requires_auth":"high_privilege","summary":"Attackers can inject malicious JavaScript into the username field, leading to script execution when the user list is viewed.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"calibre-web","vendor":"janeczku"}],"cvss":{"score":3.5,"severity":"low","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2025-11-14","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-14T09:36:45Z","kind":"github_poc","ref":"https://github.com/KhanhDuy155/calibre-web-CVE-2025-65858","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":false,"headline":"Calibre-Web Has a Stored Cross-Site Scripting (XSS) Vulnerability via the 'username' Field During User Creation","id":"CVE-2025-65858","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Integer overflow in n/a","id":"CVE-2025-65865"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.6.25"],"package":"calibreweb","purl":null,"source":"GHSA-pc5g-j9j7-p4q3"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.6.25"],"package":"calibreweb","purl":"pkg:pypi/calibreweb","source":"GHSA-pc5g-j9j7-p4q3"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.6.25"],"package":"calibreweb","purl":"pkg:pypi/calibreweb","source":"PYSEC-2026-1234"}],"prev":{"headline":"Hardcoded credentials in n/a","id":"CVE-2025-65857"},"products":["n/a"],"published":"2025-12-02","related":[{"cvss_score":9.8,"headline":"SQL injection in calibreweb","id":"CVE-2022-30765","kev_date_added":null,"published":"2022-05-16"},{"cvss_score":9.8,"headline":"Hardcoded credentials in n/a","id":"CVE-2020-12627","kev_date_added":null,"published":"2020-05-04"},{"cvss_score":9.3,"headline":"Server-Side Request Forgery (SSRF) in janeczku/calibre-web","id":"CVE-2022-0990","kev_date_added":null,"published":"2022-04-04"},{"cvss_score":9.1,"headline":"Server-Side Request Forgery (SSRF) in janeczku/calibre-web","id":"CVE-2022-0767","kev_date_added":null,"published":"2022-03-07"},{"cvss_score":9,"headline":"Server-Side Request Forgery (SSRF) in janeczku/calibre-web","id":"CVE-2022-0939","kev_date_added":null,"published":"2022-04-04"},{"cvss_score":8.8,"headline":"Calibre-web - Admin Account Takeover via Cross-Site Request Forgery (CSRF)","id":"CVE-2021-25965","kev_date_added":null,"published":"2021-11-16"},{"cvss_score":8.5,"headline":"Cross-site Scripting (XSS) - Reflected in janeczku/calibre-web","id":"CVE-2022-0352","kev_date_added":null,"published":"2022-01-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-12-02","vendors":["n/a"]},"summary":"Attackers can inject malicious JavaScript into the username field, leading to script execution when the user list is viewed.","url":"https://insights.sbomify.com/CVE-2025-65858/"}