Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2024-53907

CVE-2024-53907: Django denial-of-service in django.utils.html.strip_tags()

December 6, 2024 (updated January 14, 2025)

An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. The strip_tags() method and striptags template filter are subject to a potential denial-of-service attack via certain inputs containing large sequences of nested incomplete HTML entities.

References

  • docs.djangoproject.com/en/dev/releases/security
  • github.com/advisories/GHSA-8498-2h75-472j
  • github.com/django/django
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-156.yaml
  • groups.google.com/g/django-announce
  • lists.debian.org/debian-lts-announce/2024/12/msg00028.html
  • nvd.nist.gov/vuln/detail/CVE-2024-53907
  • www.djangoproject.com/weblog/2024/dec/04/security-releases
  • www.openwall.com/lists/oss-security/2024/12/04/3

Code Behaviors & Features

Detect and mitigate CVE-2024-53907 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.2.0 before 4.2.17, all versions starting from 5.0.0 before 5.0.10, all versions starting from 5.1.0 before 5.1.4

Fixed versions

  • 5.1.4
  • 4.2.17
  • 5.0.10

Solution

Upgrade to versions 4.2.17, 5.0.10, 5.1.4 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/Django/CVE-2024-53907.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.