Lucene search

K
osvGoogleOSV:GHSA-M4M5-J36M-8X72
HistoryJan 22, 2024 - 9:32 p.m.

html injection vulnerability in the `tuitse_html` function.

2024-01-2221:32:52
Google
osv.dev
7
html injection
tuitse_html
django.utils.html.format_html
string.format()
upgrade
version 1.3.2
sanitize taigi input

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI Score

7.2

Confidence

High

EPSS

0.001

Percentile

20.6%

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

CVSS3

6.1

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

LOW

Integrity Impact

LOW

Availability Impact

NONE

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI Score

7.2

Confidence

High

EPSS

0.001

Percentile

20.6%