---
id: CVE-2024-23341
aliases:
  - GHSA-m4m5-j36m-8x72
  - PYSEC-2024-22
title: html injection vulnerability in the `tuitse_html` function.
summary: html injection vulnerability in the `tuitse_html` function.
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'
vendor: tuitse-tsusin
product: tuitse-tsusin
ecosystem: pip
affected:
  - tuitse-tsusin < 1.3.2
patched:
  - tuitse-tsusin 1.3.2
published: '2024-01-22'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:05.032692024Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-m4m5-j36m-8x72'
references:
  - url: >-
      https://github.com/i3thuan5/TuiTse-TsuSin/security/advisories/GHSA-m4m5-j36m-8x72
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-23341'
  - url: 'https://github.com/i3thuan5/TuiTse-TsuSin/pull/22'
  - url: >-
      https://github.com/i3thuan5/TuiTse-TsuSin/commit/9d21d99d7cfcd7c42aade251fab98ec102e730ea
  - url: 'https://github.com/i3thuan5/TuiTse-TsuSin'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/tuitse-tsusin/PYSEC-2024-22.yaml
tags:
  - osv
  - pip
epss: 0.00428
epssPercentile: 0.36698
ingestedAt: '2026-09-12T03:13:01.709Z'
---

## Overview

### Impact

When using `tuitse_html` without quoting the input, there is a html injection vulnerability. It should use the django version `django.utils.html.format_html`, instead of `string.format()`

### Patches

Upgrade to version 1.3.2.

### Workarounds


Sanitizing Taigi input with HTML quotation.

### References


https://github.com/i3thuan5/TuiTse-TsuSin/pull/22

## Affected packages

- `tuitse-tsusin < 1.3.2`

## Remediation

Upgrade to a patched release:

- `tuitse-tsusin 1.3.2`
