Django 5.1.9 リリースノート¶
2025年5月7日
Django 5.1.9 では 5.1.8 における深刻度 "moderate" のセキュリティの問題、データ損失のバグ、リグレッションを修正しました。
This release was built using an upgraded setuptools, producing filenames compliant with PEP 491 and PEP 625 and thus addressing a PyPI warning about non-compliant distribution filenames. This change only affects the Django packaging process and does not impact Django's behavior.
バグ修正¶
Fixed a data corruption possibility in
file_move_safe()
whenallow_overwrite=True
, where leftover content from a previously larger file could remain after overwriting with a smaller one due to lack of truncation (#36298).Fixed a regression in Django 5.1.8, introduced when fixing CVE 2025-26699, where the
wordwrap
template filter did not preserve empty lines between paragraphs after wrapping text (#36341).