# CVE-2024-9107: Stored XSS in gaizhenbiao/chuanhuchatgpt

- Severity: Medium 6.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:12.783Z
- Modified: 2026-06-17T08:23:58.107Z
- Also known as: PYSEC-2025-95
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A stored cross-site scripting (XSS) vulnerability exists in the gaizhenbiao/chuanhuchatgpt repository, affecting version git 20b2e02. The vulnerability arises from improper sanitization of HTML tags in chat history uploads. Specifically, the sanitization logic fails to handle HTML tags within code blocks correctly, allowing an attacker to inject malicious scripts. This can lead to the execution of arbitrary JavaScript code in the context of the user's browser, potentially leading to identity theft or other malicious actions.

(As written by CVE List.)

## Affected

- gaizhenbiao gaizhenbiao/chuanhuchatgpt: from unspecified up to latest
- gaizhenbiao chuanhuchatgpt: 2024-09-19
- chuanhuchatgpt (PyPI): up to 2024-09-19

## Every score

- @huntr_ai: CVSS:3.0 6.8 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://huntr.com/bounties/a2972c51-4780-4f60-afbf-a7a8ee4066ea> (exploit, evidence, third-party-advisory)

## Sources

- CVE List: [CVE-2024-9107](https://www.cve.org/CVERecord?id=CVE-2024-9107), CVE Terms of Use, modified 2025-03-20
- NVD: [CVE-2024-9107](https://nvd.nist.gov/vuln/detail/CVE-2024-9107), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-95](https://osv.dev/vulnerability/PYSEC-2025-95), CC-BY-4.0, modified 2026-05-21

---

Page: https://cve.day/CVE-2024-9107 · Whole record: https://cve.day/CVE-2024-9107.json · Rebuilt by cve.day 2026-11-25T22:58:52.409Z
