# CVE-2024-23341: TuiTse-TsuSin html injection vulnerability in \`tuitse\_html\` function

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-m4m5-j36m-8x72, PYSEC-2024-22
- **Published:** 2024-01-22T21:32:52.000Z
- **Modified:** 2026-09-10T03:50:05.032Z

## Who should check

- Projects that depend on PyPI package tuitse-tsusin (\< 1.3.2)
- Anyone running i3thuan5 TuiTse-TsuSin \< 1.3.2

## 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.

## Affected and fixed versions

- PyPI `tuitse-tsusin`: affected \< 1.3.2; fixed 1.3.2 (osv)
- i3thuan5 TuiTse-TsuSin: \< 1.3.2 (cvelist)

## Mitigation

- Upgrade tuitse-tsusin to 1.3.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-23341. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-23341.md
Affected: tuitse-tsusin < 1.3.2
Fixed in: 1.3.2

Steps:
1. Search this machine and project for tuitse-tsusin (PyPI), i3thuan5 TuiTse-TsuSin: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-23341 being exploited?

There is no confirmed exploitation: CVE-2024-23341 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-23341?

Medium: CVSS 6.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-23341?

tuitse-tsusin \< 1.3.2.

### Is there a fix for CVE-2024-23341?

Yes. Fixed in 1.3.2. Upgrade tuitse-tsusin to 1.3.2 or later.

### How do I check if I'm affected by CVE-2024-23341?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/i3thuan5/TuiTse-TsuSin/security/advisories/GHSA-m4m5-j36m-8x72>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-23341>
- patch: <https://github.com/i3thuan5/TuiTse-TsuSin/pull/22>
- patch: <https://github.com/i3thuan5/TuiTse-TsuSin/commit/9d21d99d7cfcd7c42aade251fab98ec102e730ea>
- other: <https://github.com/i3thuan5/TuiTse-TsuSin>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/tuitse-tsusin/PYSEC-2024-22.yaml>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-23341>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m4m5-j36m-8x72> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2024-22> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-23341> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-23341>
