MEDIUM6.1
PYSEC-2017-45
Quick fix
PYSEC-2017-45 — ipython: upgrade to the fixed version with the command below.
pip install --upgrade 'ipython>=c2078a53543ed502efd968649fee1125e0eb549c'Details
Cross-site scripting (XSS) vulnerability in IPython 3.x before 3.2 allows remote attackers to inject arbitrary web script or HTML via vectors involving JSON error messages and the /api/contents path.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/ipython
Introduced in:
0Fixed in: c2078a53543ed502efd968649fee1125e0eb549cFix
pip install --upgrade 'ipython>=c2078a53543ed502efd968649fee1125e0eb549c'References
- https://ipython.org/ipython-doc/3/whatsnew/version3.html[WEB]
- https://github.com/ipython/ipython/commit/c2078a53543ed502efd968649fee1125e0eb549c[FIX]
- https://github.com/ipython/ipython/commit/7222bd53ad089a65fd610fab4626f9d0ab47dfce[FIX]
- https://bugzilla.redhat.com/show_bug.cgi?id=1235688[REPORT]
- http://www.openwall.com/lists/oss-security/2015/06/22/7[WEB]
- http://www.securityfocus.com/bid/75328[WEB]
- https://github.com/advisories/GHSA-q326-jhw3-699g[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/ipython"]}'