CVE-2015-4707: Cross-Site Scripting (XSS) in IPython

ipython Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
6.1

CVE-2015-4707: Improper Neutralization of Input During Web Page Generation in IPython. Affects ipython versions < 3.2.0. Fixed in 3.2.0. How to fix ↓

Also tracked for

The same CVE-2015-4707 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

IPython is an interactive command-line interface for Python that provides enhanced features for code execution, debugging, and data visualization. It is widely used by developers and data scientists for interactive computing and exploratory data analysis. However, prior to version 3.2, IPython was vulnerable to a cross-site scripting (XSS) attack.

Vulnerability Detail

The vulnerability (CVE-2015-4707) in IPython allowed remote attackers to inject arbitrary web script or HTML through JSON error messages and the /api/notebooks path. This could lead to the execution of malicious code in the context of the user's browser, potentially compromising sensitive information or performing unauthorized actions.

How To Fix

Minimum fixed version

3.2.0

This is the first release that contains the fix.

pip install --upgrade "ipython==3.2.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The vulnerability (CVE-2015-4707) in IPython allowed for cross-site scripting (XSS) attacks, potentially compromising user data and system integrity. To mitigate this vulnerability, it is crucial to upgrade IPython to version 3.2.0 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ipython →

Share this vulnerability

FAQ

IPython is an interactive command-line interface for Python that provides enhanced features for code execution, debugging, and data visualization.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

The vulnerability in IPython could allow remote attackers to execute arbitrary code in the user's browser, potentially compromising sensitive information or performing unauthorized actions.

You can use the Vulert playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock and it will alert you in real-time for open-source vulnerabilities, including this one.

No specific workaround is mentioned for this vulnerability. It is recommended to upgrade IPython to the latest version to ensure the security patches are applied.

Related vulnerabilities

Recent vulnerabilities recorded for ipython.

How To Fix

Minimum fixed version

3.2.0

This is the first release that contains the fix.

pip install --upgrade "ipython==3.2.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback