#36743: Max URL length of 2048 is too conservative for redirect targets
-------------------------------------+-------------------------------------
     Reporter:  Jacob Walls          |                    Owner:  Varun
                                     |  Kasyap Pentamaraju
         Type:  Bug                  |                   Status:  closed
    Component:  HTTP handling        |                  Version:  4.2
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):

 In [changeset:"ce7d65fc8156e6b1e2163c3988eecbf214a8b031" ce7d65fc]:
 {{{#!CommitTicketReference repository=""
 revision="ce7d65fc8156e6b1e2163c3988eecbf214a8b031"
 [6.0.x] Fixed #36743 -- Increased URL max length enforced in
 HttpResponseRedirectBase.

 Refs CVE-2025-64458.

 The previous limit of 2048 characters reused the URLValidator constant
 and proved too restrictive for legitimate redirects to some third-party
 services. This change introduces a separate `MAX_URL_REDIRECT_LENGTH`
 constant (defaulting to 16384) and uses it in HttpResponseRedirectBase.

 Thanks Jacob Walls for report and review.

 Backport of a8cf8c292cfee98fe6cc873ca5221935f1d02271 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36743#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019ac1d26392-36eda755-62a8-435e-a07a-a09cac97c824-000000%40eu-central-1.amazonses.com.

Reply via email to