Media

urllib3's request body not stripped after redirect from 303 status changes request method to GET

  • Publicada: 17.10.2023
  • Actualizado: 11.10.2026 15:17

urllib3 previously wouldn't remove the HTTP request body when an HTTP redirect response using status 303 "See Other" after the request had its method changed from one that could accept a request body (like POST) to GET as is required by HTTP RFCs. Although the behavior of removing the request body is not specified in the section for redirects, it can be inferred by piecing together information from different sections and we have observed the behavior in other major HTTP client implementations like curl and web browsers.

From RFC 9110 Section 9.3.1:

A client SHOULD NOT generate content in a GET request unless it is made directly to an origin server that has previously indicated, in or out of band, that such a request has a purpose and will be adequately supported.

Affected usages

Because the vulnerability requires a previously trusted service to become compromised in order to have an impact on confidentiality we believe the exploitability of this vulnerability is low. Additionally, many users aren't putting sensitive data in HTTP request bodies, if this is the case then this vulnerability isn't exploitable.

Both of the following conditions must be true to be affected by this vulnerability:

  • If you're using urllib3 and submitting sensitive information in the HTTP request body (such as form data or JSON)
  • The origin service is compromised and starts redirecting using 303 to a malicious peer or the redirected-to service becomes compromised.

Remediation

You can remediate this vulnerability with any of the following steps:

  • Upgrade to a patched version of urllib3 (v1.26.18 or v2.0.7)
  • Disable redirects for services that you aren't expecting to respond with redirects with redirects=False.
  • Disable automatic redirects with redirects=False and handle 303 redirects manually by stripping the HTTP request body.

Software afectado

Haz clic en una tecnología para ver todas sus vulnerabilidades.

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) urllib3 >= 2.0.0, < 2.0.7, < 1.26.18 2.0.7, 1.26.18

Referencias

Puntuación CVSS 4.2/10
Vector CVSS
CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
Debilidad (CWE)
CWE-200
Plataforma
Python (PyPI)
Paquete
urllib3
Publicada
17.10.2023
Actualizado
11.10.2026 15:17

Fuentes y licencias

OSV / GitHub Advisory Database - PYSEC-2023-212 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-g4mx-q9vg-27p4 - CC BY 4.0

Historial de vulnerabilidades: urllib3

Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.

Todas (22) en el archivo
Entradas en total
22
Primera → última
01.2017 09.2026
Sin corrección
0
Explotada en ataques
0

Distribución por gravedad

  • Crítica 1
  • Alta 11
  • Media 10

Divulgaciones por año

  1. 2017: 1
  2. 2018: 1
  3. 2019: 2
  4. 2020: 2
  5. 2021: 2
  6. 2022: 0
  7. 2023: 3
  8. 2024: 1
  9. 2025: 4
  10. 2026: 6
Gravedad:
  1. Alta CVE-2026-97687 >= 1.26.0, < 2.8.0 2.8.0
  2. Alta · 7.5 CVE-2026-44432 >= 2.6.0, < 2.7.0 2.7.0
  3. Alta CVE-2025-66471 >= 1.0, < 2.6.0 2.6.0
  4. urllib3's request body not stripped after redirect from 303 status changes request method to GET esta entrada
    Media · 4.2 CVE-2023-45803 >= 2.0.0, < 2.0.7, < 1.26.18 2.0.7, 1.26.18
  5. Alta · 5.9 CVE-2023-43804 >= 2.0.0, < 2.0.6, < 1.26.17 2.0.6, 1.26.17
  6. Alta · 7.5 CVE-2020-7212 >= 1.25.2, < 1.25.8 1.25.8
  7. Alta · 7.5 CVE-2019-11324 < 1.24.2 1.24.2

Identifica las vulnerabilidades de tu aplicación

Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.

Conectar tu aplicación
Newsletter DockRay

La seguridad de tus aplicaciones en tu correo

Vulnerabilidades importantes, recomendaciones concretas y consejos prácticos para tus aplicaciones. Elige tus tecnologías y sigue lo que importa para tu proyecto.

  • Un resumen diario de nuevas vulnerabilidades, también las críticas.
  • Avisos sobre actualizaciones importantes.
  • Consejos prácticos sobre seguridad y monitorización de aplicaciones.

Déjalo vacío para recibir avisos de todas las tecnologías.

Suscripción gratuita. Date de baja con un clic en cualquier correo.