{"id":"CVE-2024-53907","aliases":["CVE-2024-53907","GHSA-8498-2h75-472j","BIT-DJANGO-2024-53907","PYSEC-2024-156"],"related":[],"kind":"vulnerability","state":"published","title":"Django denial-of-service in django.utils.html.strip_tags()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en Django 5.1 anterior a 5.1.4, 5.0 anterior a 5.0.10 y 4.2 anterior a 4.2.17. El método strip_tags() y el filtro de plantilla striptags están sujetos a un posible ataque de denegación de servicio a través de ciertas entradas que contienen secuencias grandes de entidades HTML incompletas anidadas.","source":"nvd"}],"published":"2024-12-06T00:00:00.000Z","modified":"2026-09-10T03:50:56.451Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.1","fixed":"5.1.4","status":"affected"},{"type":"custom","introduced":"5.0","fixed":"5.0.10","status":"affected"},{"type":"custom","introduced":"4.2","fixed":"4.2.17","status":"affected"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.1.0","status":"affected","fixed":"5.1.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0","status":"affected","fixed":"4.2.17"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0.0","status":"affected","fixed":"5.0.10"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.10"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.17"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.17"},{"status":"affected","introduced":"5.0","fixed":"5.0.10"},{"status":"affected","introduced":"5.1","fixed":"5.1.4"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.4"},{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.10"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.17"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.17"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.1.4"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","patch","vendor-advisory","web"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["article","release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.openwall.com/lists/oss-security/2024/12/04/3","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00028.html","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53907","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-156.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2024/dec/04/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-8498-2h75-472j","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-12-06T16:22:53.268Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53907","url":"https://www.cve.org/CVERecord?id=CVE-2024-53907","licence":"CVE Terms of Use","modified":"2024-12-31T18:03:11.347Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8498-2h75-472j","url":"https://github.com/advisories/GHSA-8498-2h75-472j","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.451Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53907","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53907","licence":"Public domain","modified":"2026-06-17T08:09:28.707Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-156","url":"https://osv.dev/vulnerability/PYSEC-2024-156","licence":"CC-BY-4.0","modified":"2026-06-10T17:00:52.527Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2024-53907","url":"https://osv.dev/vulnerability/BIT-DJANGO-2024-53907","licence":"Apache-2.0","modified":"2026-09-08T08:46:36.421Z"}],"updatedAt":"2026-11-25T22:58:49.774Z","epss":{"score":0.01388,"percentile":0.73091,"date":"2026-12-01T12:00:22.000Z"}}