Media

Scrapy's redirects ignoring scheme-specific proxy settings

  • Publicada: 14.05.2024
  • Actualizado: 11.10.2026 12:18

Impact

When using system proxy settings, which are scheme-specific (i.e. specific to http:// or https:// URLs), Scrapy was not accounting for scheme changes during redirects.

For example, an HTTP request would use the proxy configured for HTTP and, when redirected to an HTTPS URL, the new HTTPS request would still use the proxy configured for HTTP instead of switching to the proxy configured for HTTPS. Same the other way around.

If you have different proxy configurations for HTTP and HTTPS in your system for security reasons (e.g., maybe you don’t want one of your proxy providers to be aware of the URLs that you visit with the other one), this would be a security issue.

Patches

Upgrade to Scrapy 2.11.2.

Workarounds

Replace the built-in retry middlewares (RedirectMiddleware and MetaRefreshMiddleware) and the HttpProxyMiddleware middleware with custom ones that implement the fix from Scrapy 2.11.2, and verify that they work as intended.

References

This security issue was reported by @redapple at https://github.com/scrapy/scrapy/issues/767.

Software afectado

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

PlataformaPaqueteVersiones vulnerablesCorregida en
Python (PyPI) scrapy < 2.11.2 2.11.2

Referencias

Puntuación CVSS 4.3/10
Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Debilidad (CWE)
-
Plataforma
Python (PyPI)
Paquete
scrapy
Publicada
14.05.2024
Actualizado
11.10.2026 12:18

Fuentes y licencias

OSV / GitHub Advisory Database - GHSA-jm3v-qxmh-hxwv - CC BY 4.0

Historial de vulnerabilidades: scrapy

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 (14) en el archivo
Entradas en total
14
Primera → última
09.2017 09.2026
Sin corrección
1
Explotada en ataques
0

Distribución por gravedad

  • Alta 6
  • Media 8

Divulgaciones por año

  1. 2017: 1
  2. 2018: 0
  3. 2019: 0
  4. 2020: 0
  5. 2021: 1
  6. 2022: 3
  7. 2023: 0
  8. 2024: 6
  9. 2025: 1
  10. 2026: 2
Gravedad:
  1. Alta · 7.5 CVE-2026-105782 >= 1.4.0, < 2.14.2 2.14.2
  2. Scrapy's redirects ignoring scheme-specific proxy settings esta entrada
    Media · 4.3 ghsa-jm3v-qxmh-hxwv < 2.11.2 2.11.2
  3. Alta · 7.5 CVE-2024-3572 >= 2.0.0, < 2.11.1, < 1.8.4 2.11.1, 1.8.4
  4. Alta · 7.5 CVE-2024-3574 >= 2, < 2.11.1, < 1.8.4 2.11.1, 1.8.4
  5. Alta · 7.5 CVE-2017-14158 >= 0.7, <= 2.15.2 sin corrección

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.