<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/requests_tests/tests.py, branch stable/6.0.x</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=stable%2F6.0.x</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=stable%2F6.0.x'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2026-04-07T11:22:16Z</updated>
<entry>
<title>[6.0.x] Fixed CVE-2026-33033 -- Mitigated potential DoS in MultiPartParser.</title>
<updated>2026-04-07T11:22:16Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2026-03-05T17:41:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=0910af60468216c856dfbcac1177372c225deb76'/>
<id>urn:sha1:0910af60468216c856dfbcac1177372c225deb76</id>
<content type='text'>
When a multipart file part used `Content-Transfer-Encoding: base64` and
the non-whitespace base64 bytes did not align to a multiple of 4 within
a chunk, the parser entered a loop calling `field_stream.read(1-3)` once
per whitespace byte. Each such call fetched the entire internal buffer,
sliced off 1-3 bytes, and pushed the remainder back via unget(), doing
an O(n) memory copy per call. A 2.5 MB payload of mostly whitespace
produced CPU amplification relative to a normal upload of the same size.

The alignment loop now reads `self._chunk_size` bytes at a time, and
accumulates stripped parts in a list joined once at the end.

Thanks to Seokchan Yoon for the report and the fixing patch.

Backport of 7e9885f99cee771b51692fadc5592bdbf19641aa from main.
</content>
</entry>
<entry>
<title>Refs #36520 -- Ensured only the header value is passed to parse_header_parameters for multipart requests.</title>
<updated>2025-08-28T17:25:36Z</updated>
<author>
<name>Jake Howard</name>
<email>git@theorangeone.net</email>
</author>
<published>2025-08-20T15:04:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=41ff30f6f9d072036be1f74db8f0c8b21565299f'/>
<id>urn:sha1:41ff30f6f9d072036be1f74db8f0c8b21565299f</id>
<content type='text'>
Header parsing should apply only to the header value. The previous
implementation happened to work but relied on unintended behavior.
</content>
</entry>
<entry>
<title>Refs #36500 -- Rewrapped long docstrings and block comments via a script.</title>
<updated>2025-07-23T23:17:55Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2025-07-23T03:41:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=69a93a88edb56ba47f624dac7a21aacc47ea474f'/>
<id>urn:sha1:69a93a88edb56ba47f624dac7a21aacc47ea474f</id>
<content type='text'>
Rewrapped long docstrings and block comments to 79 characters + newline
using script from https://github.com/medmunds/autofix-w505.
</content>
</entry>
<entry>
<title>Fixed #36332 -- Corrected HttpRequest.get_full_path() and HttpRequest.get_full_path_info() examples.</title>
<updated>2025-05-13T15:41:17Z</updated>
<author>
<name>Aleksandr Safonov</name>
<email>sashakashvile@gmail.com</email>
</author>
<published>2025-04-18T13:46:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=96c79be4e436f0b3045421556a2253cbff4533dc'/>
<id>urn:sha1:96c79be4e436f0b3045421556a2253cbff4533dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #21442 -- Increased test coverage of requests.</title>
<updated>2023-11-28T08:33:59Z</updated>
<author>
<name>David Smith</name>
<email>smithdc@gmail.com</email>
</author>
<published>2023-11-25T14:57:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=76280b4f4d7547dc869b71c22f658095a1565875'/>
<id>urn:sha1:76280b4f4d7547dc869b71c22f658095a1565875</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #34968 -- Made multipart parsing of headers raise an error on too long headers.</title>
<updated>2023-11-24T11:06:54Z</updated>
<author>
<name>Standa Opichal</name>
<email>stanislav.opichal@rossum.ai</email>
</author>
<published>2023-11-10T16:40:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1c6e8ec4ed6d9c374161eda965160e4782c7d71e'/>
<id>urn:sha1:1c6e8ec4ed6d9c374161eda965160e4782c7d71e</id>
<content type='text'>
This also allow customizing the maximum size of headers via
MAX_TOTAL_HEADER_SIZE.
</content>
</entry>
<entry>
<title>Fixed #34709 -- Raised BadRequest for non-UTF-8 requests with the application/x-www-form-urlencoded content type.</title>
<updated>2023-08-25T19:27:22Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-08-25T19:27:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=11920e77959deaa65eb86ccc5d39da903fd3dd41'/>
<id>urn:sha1:11920e77959deaa65eb86ccc5d39da903fd3dd41</id>
<content type='text'>
Thanks Eki Xu for the report.</content>
</entry>
<entry>
<title>Added more tests for django.http.request.split_domain_port().</title>
<updated>2023-08-02T11:06:23Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2023-07-27T15:09:09Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=c77fbda7ceaf00d09c322b6e0d0b0b82b4f32e98'/>
<id>urn:sha1:c77fbda7ceaf00d09c322b6e0d0b0b82b4f32e98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added MultiPartParser tests for parsing base64-encoded fields.</title>
<updated>2023-06-07T03:44:27Z</updated>
<author>
<name>benebsiny</name>
<email>stu995106@hotmail.com.tw</email>
</author>
<published>2023-06-06T08:31:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=7cc138a58f73c17f07cfaf459ef8e7677ac41ac0'/>
<id>urn:sha1:7cc138a58f73c17f07cfaf459ef8e7677ac41ac0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #34484, Refs #34482 -- Reverted "Fixed #29186 -- Fixed pickling HttpRequest and subclasses."</title>
<updated>2023-04-12T16:52:43Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-04-12T07:25:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=280ca147af9cdfce1ca9cb14cc3c5527ff6c7a02'/>
<id>urn:sha1:280ca147af9cdfce1ca9cb14cc3c5527ff6c7a02</id>
<content type='text'>
This reverts commit 6220c445c40a6a7f4d442de8bde2628346153963.

Thanks Adam Johnson and Márton Salomváry for reports.
</content>
</entry>
</feed>
