GHSA-m4m5-j36m-8x72

Suggest an improvement
Source
https://github.com/advisories/GHSA-m4m5-j36m-8x72
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-m4m5-j36m-8x72/GHSA-m4m5-j36m-8x72.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-m4m5-j36m-8x72
Aliases
Related
Published
2024-01-22T21:32:52Z
Modified
2024-11-18T23:23:44.358615Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
html injection vulnerability in the `tuitse_html` function.
Details

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

Database specific
{
    "nvd_published_at": "2024-01-23T18:15:19Z",
    "cwe_ids": [
        "CWE-79"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-01-22T21:32:52Z"
}
References

Affected packages

PyPI / tuitse-tsusin

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.2

Affected versions

1.*

1.0.0
1.1.1
1.2.0
1.2.1
1.3.0
1.3.1