Vulnerability advisory

CVE-2021-32052

Published Updated OSV record ↗

Also known as BIT-django-2021-32052GHSA-qm57-vhq3-3fwfPYSEC-2021-8

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/django/django ↗
2a62cdcfec85938f40abb2e9e6a9ff497e02afe8 to before df9fd4661e203d41c189054d8b23d256815e14fcdf9fd4661e203d41c189054d8b23d256815e14fc
0b8a0296bfd30748f08021834e95cdae241686e8 to before a2407cd67bd98cc2de4ed7784eb6beee67b3898fa2407cd67bd98cc2de4ed7784eb6beee67b3898f
3591e1c1acbd7c13174275367c3fdf012cb0413b to before 26e033b1b7dd54aa8b55bc49d49d611bf6d09f8526e033b1b7dd54aa8b55bc49d49d611bf6d09f85

Description

In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 before 3.2.2 (with Python 3.9.5+), URLValidator does not prohibit newlines and tabs (unless the URLField form field is used). If an application uses values with newlines in an HTTP response, header injection can occur. Django itself is unaffected because HttpResponse prohibits newlines in HTTP headers.

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