{"id":"CVE-2025-50182","aliases":["CVE-2025-50182","GHSA-48p4-8xcf-vxj5","PYSEC-2026-1997"],"related":[],"kind":"vulnerability","state":"published","title":"urllib3 does not control redirects in browsers and Node.js","summary":"urllib3 is a user-friendly HTTP client library for Python. Starting in version 2.2.0 and prior to 2.5.0, urllib3 does not control redirects in browsers and Node.js. urllib3 supports being used in a Pyodide runtime utilizing the JavaScript Fetch API or falling back on XMLHttpRequest. This means Python libraries can be used to make HTTP requests from a browser or Node.js. Additionally, urllib3 provides a mechanism to control redirects, but the retries and redirect parameters are ignored with Pyodide; the runtime itself determines redirect behavior. This issue has been patched in version 2.5.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"urllib3 is a user-friendly HTTP client library for Python. Starting in version 2.2.0 and prior to 2.5.0, urllib3 does not control redirects in browsers and Node.js. urllib3 supports being used in a Pyodide runtime utilizing the JavaScript Fetch API or falling back on XMLHttpRequest. This means Python libraries can be used to make HTTP requests from a browser or Node.js. Additionally, urllib3 provides a mechanism to control redirects, but the retries and redirect parameters are ignored with Pyodide; the runtime itself determines redirect behavior. This issue has been patched in version 2.5.0.","source":"cvelist"},{"lang":"en","text":"urllib3 [supports](https://urllib3.readthedocs.io/en/2.4.0/reference/contrib/emscripten.html) being used in a Pyodide runtime utilizing the [JavaScript Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) or falling back on [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest). This means you can use Python libraries to make HTTP requests from your browser or Node.js. Additionally, urllib3 provides [a mechanism](https://urllib3.readthedocs.io/en/2.4.0/user-guide.html#retrying-requests) to control redirects.\n\nHowever, the `retries` and `redirect` parameters are ignored with Pyodide; the runtime itself determines redirect behavior.\n\n\n## Affected usages\n\nAny code which relies on urllib3 to control the number of redirects for an HTTP request in a Pyodide runtime.\n\n\n## Impact\n\nRedirects are often used to exploit SSRF vulnerabilities. An application attempting to mitigate SSRF or open redirect vulnerabilities by disabling redirects may remain vulnerable if a Pyodide runtime redirect mechanism is unsuitable.\n\n\n## Remediation\n\nIf you use urllib3 in Node.js, upgrade to a patched version of urllib3.\n\nUnfortunately, browsers provide no suitable way which urllib3 can use: `XMLHttpRequest` provides no control over redirects, the Fetch API returns `opaqueredirect` responses lacking data when redirects are controlled manually. Expect default browser behavior for redirects.","format":"markdown","source":"ghsa"},{"lang":"es","text":"urllib3 es una librería cliente HTTP intuitiva para Python. Antes de la versión 2.5.0, urllib3 no controlaba las redirecciones en navegadores ni en Node.js. urllib3 admite su uso en un entorno de ejecución de Pyodide mediante la API Fetch de JavaScript o recurriendo a XMLHttpRequest. Esto significa que las librerías de Python pueden usarse para realizar solicitudes HTTP desde un navegador o Node.js. Además, urllib3 proporciona un mecanismo para controlar las redirecciones, pero los reintentos y los parámetros de redirección se ignoran con Pyodide; el propio entorno de ejecución determina el comportamiento de la redirección. Este problema se ha corregido en la versión 2.5.0.","source":"nvd"}],"published":"2025-06-18T17:50:11.000Z","modified":"2026-11-19T17:47:30.560Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":">= 2.2.0, < 2.5.0","status":"affected"}],"vendor":"urllib3","product":"urllib3","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.5.0"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.3.0","fixed":"2.5.0"}],"vendor":"python","product":"urllib3","cpe":"cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.2.0","status":"affected","fixed":"2.5.0"}],"ecosystem":"PyPI","package":"urllib3","purl":"pkg:pypi/urllib3","source":"pysec"}],"references":[{"url":"https://github.com/urllib3/urllib3/security/advisories/GHSA-48p4-8xcf-vxj5","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/urllib3/urllib3/commit/7eb4a2aafe49a279c29b6d1f0ed0f42e9736194f","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/urllib3/urllib3/releases/tag/2.5.0","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50182","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/urllib3/urllib3","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/urllib3","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-48p4-8xcf-vxj5","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-23T16:55:48.101Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-50182","url":"https://www.cve.org/CVERecord?id=CVE-2025-50182","licence":"CVE Terms of Use","modified":"2025-12-22T18:43:46.779Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-48p4-8xcf-vxj5","url":"https://github.com/advisories/GHSA-48p4-8xcf-vxj5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:24.821Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-50182","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-50182","licence":"Public domain","modified":"2026-11-19T17:47:30.560Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1997","url":"https://osv.dev/vulnerability/PYSEC-2026-1997","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:15.745Z"}],"updatedAt":"2026-11-25T22:58:59.391Z","epss":{"score":0.00526,"percentile":0.38012,"date":"2026-11-30T12:00:22.000Z"}}