RepoJournal
Django

@django

Python's batteries-included web framework

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

One email a day. Unsubscribe in one click.

Pick a date

Topics: Python Full archive →

The Wire · Showcase

DJANGO SHIPS CSP NONCE TAG AND FIXES ASGI AUTHENTICATION REGRESSION

By RepoJournal · Filed · About Django

Django merged three security and authentication fixes overnight that close gaps in ASGI middleware behavior and add a critical content security policy helper.

The headliner is a new `{% csp_nonce_attr %}` template tag [1] that handles CSP nonce injection explicitly — a cleaner pattern than the old workarounds for securing inline scripts and stylesheets. This ships alongside two authentication fixes that matter more than they first appear: Django 5.2 introduced a regression where RemoteUserMiddleware behaved differently under ASGI than WSGI [2] [3], forcing proxy operators to rewrite headers in incompatible ways. That's fixed now. The team also clarified the security posture of RemoteUserMiddleware itself , tightening documentation around header spoofing risks. A fourth commit [4] stages test infrastructure for incoming email provider integrations, suggesting a larger feature is landing in the next cycle. All four are cherry-picks or targeted fixes — no breaking changes, all backport candidates.

One email a day. Unsubscribe in one click.

Action items

References

  1. [1] Fixed #36784 -- Added csp_nonce_attr template tag for CSP nonce inclusion. ↗ django/django
  2. [2] Fixed #36300 -- Restored the semantic where RemoteUserMiddleware.header corresponds to request.META under ASGI. django/django
  3. [3] Fixed #36300 -- Restored the semantic where RemoteUserMiddleware.header corresponds to request.META under ASGI. ↗ django/django
  4. [4] Refs #35514 -- Prepared for email providers. ↗ django/django

Quick answers

What shipped in Django on May 7, 2026?
Django merged three security and authentication fixes overnight that close gaps in ASGI middleware behavior and add a critical content security policy helper. In total, 16 commits and 7 pull requests landed.
Who contributed to Django on May 7, 2026?
3 developers shipped this update, including nessita, jacobtylerwalls, and medmunds.
What were the notable Django updates?
Fixed #36784 -- Added csp_nonce_attr template tag for CSP nonce inclusion, Fixed #36300 -- Restored the semantic where RemoteUserMiddleware.header corresponds to request.META under ASGI, and Fixed #36300 -- Restored the semantic where RemoteUserMiddleware.header corresponds to request.META under ASGI.

More from @django

Daily updates, in your inbox

Follow Django

Keep up with Django in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.

or

One email a day. Unsubscribe in one click. Read a past issue →

Elsewhere on the wire

Want every project, not just this one?