Vulnerability advisory

CVE-2023-43665

Published Updated OSV record ↗

Also known as BIT-django-2023-43665GHSA-h8gc-pgj2-vjm3PYSEC-2023-226

Severity

Severity not reported.

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/django/django ↗
3591e1c1acbd7c13174275367c3fdf012cb0413b to before 3106e94e52a0a7786d49803c86b3139df113d36d3106e94e52a0a7786d49803c86b3139df113d36d
9fee86e44dd83dc968ec443adcde191b3eba1286 to before 865974ee933ac0648fabe4458136ce1ceec62192865974ee933ac0648fabe4458136ce1ceec62192
97aa3b7f08f51669e118f3af5ca91026e39664c3 to before c22017bd1dddb5b57d8a179e6378ef0c8d7f5eebc22017bd1dddb5b57d8a179e6378ef0c8d7f5eeb

Description

In Django 3.2 before 3.2.22, 4.1 before 4.1.12, and 4.2 before 4.2.6, the django.utils.text.Truncator chars() and words() methods (when used with html=True) are subject to a potential DoS (denial of service) attack via certain inputs with very long, potentially malformed HTML text. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which are thus also vulnerable. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools