---
title: "Django 4.2.11 版本发行说明"
version: 5.1
locale: zh-hans
source: https://docs.djangoproject.com/zh-hans/5.1/releases/4.2.11/
canonical: https://djangodocs.dev/zh-hans/5.1/releases/4.2.11/
---
# Django 4.2.11 版本发行说明

*2024 年 3 月 4 日*

Django 4.2.11 修复了一些"中等"严重性的安全问题，以及 4.2.10 版本中的一个错误。

## CVE-2024-27351: `django.utils.text.Truncator.words()` 存在潜在的正则表达式拒绝服务漏洞

`django.utils.text.Truncator.words()` 方法（使用 `html=True`）和 [`truncatewords_html`](/zh-hans/5.1/ref/templates/builtins/#std-templatefilter-truncatewords_html) 模板过滤器可能受到潜在的正则表达式拒绝服务攻击，使用精心设计的字符串（对 [**CVE 2019-14232**](https://www.cve.org/CVERecord?id=CVE-2019-14232) 和 [**CVE 2023-43665**](https://www.cve.org/CVERecord?id=CVE-2023-43665) 的后续）。

## 漏洞修复

- 修复了 Django 4.2.10 中的一个回归问题，即 `intcomma` 模板过滤器可能在浮点数的字符串表示中返回一个前导逗号（[#35172](https://code.djangoproject.com/ticket/35172)）。
