CVE-2024-23341 TuiTse-TsuSin html injection vulnerability in `tuitse_html` function
Attackers can inject malicious HTML via unquoted input in the tuitse_html function, potentially leading to script execution or data modification.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-23341?
CVE-2024-23341 is a medium-severity cross-site scripting vulnerability in i3thuan5 TuiTse-TsuSin, published on 23 Jan 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
TuiTse-TsuSin is a package for organizing the comparative corpus of Taiwanese Chinese characters and Roman characters, and extracting sentences of the Taiwanese Chinese characters and the Roman characters. Prior to version 1.3.2, when using `tuitse_html` without quoting the input, there is a html injection vulnerability. Version 1.3.2 contains a patch for the issue. As a workaround, sanitize Taigi input with HTML quotation.
Weakness: CWE-79
Which versions are affected by CVE-2024-23341?
3 open source packages ship an affected version, including tuitse-tsusin and TuiTse-TsuSin. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tuitse-tsusin PyPI | All versions | 1.3.2 |
tuitse-tsusin PyPI | All versions | 1.3.2 |
TuiTse-TsuSin PyPI | All versions | 1.3.2 |
Products include Ithuan Tuitse-Tsusin.
How do I fix CVE-2024-23341?
Upgrade tuitse-tsusin to 1.3.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-23341 being exploited?
There is no known exploitation of CVE-2024-23341 in the wild and no public exploit code.
Sources
Also known as GHSA-m4m5-j36m-8x72, PYSEC-2024-22.