CVE-2015-4706: IPython - Improper Neutralization of Input During Web Page Generation

ipython Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
6.1

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

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

IPython is an interactive computing environment for Python that provides a powerful shell, a kernel for Jupyter notebooks, and other tools for scientific computing. It allows users to execute code, access documentation, and visualize data. IPython 3.x before 3.2 is affected by a cross-site scripting (XSS) vulnerability that allows remote attackers to inject arbitrary web script or HTML. This vulnerability occurs in the JSON error messages and the /api/contents path.

Vulnerability Detail

The vulnerability in IPython 3.x before 3.2 is due to improper neutralization of input during web page generation. Attackers can exploit this vulnerability by injecting malicious web scripts or HTML code through JSON error messages and the /api/contents path. This can lead to cross-site scripting attacks, where an attacker can execute arbitrary code in the context of the victim's browser. The impact of this vulnerability can range from stealing sensitive information to performing actions on behalf of the victim.

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 →

Workaround

There is no specific workaround provided for this vulnerability. However, users can mitigate the risk by ensuring they are using the latest version of IPython and keeping their software up to date. Additionally, users should exercise caution when interacting with untrusted sources or executing code from unknown origins.

Conclusion

The vulnerability in IPython 3.x before 3.2 allows remote attackers to inject arbitrary web script or HTML through JSON error messages and the /api/contents path, leading to potential cross-site scripting attacks. Users are advised to upgrade to IPython version 3.2.0 or later to fix this vulnerability. It is important to keep software up to date and exercise caution when interacting with untrusted sources. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for ipython →

Share this vulnerability

FAQ

IPython is an interactive computing environment for Python that provides a powerful shell, a kernel for Jupyter notebooks, and other tools for scientific computing.

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 impact of this vulnerability can range from stealing sensitive information to performing actions on behalf of the victim.

To fix this vulnerability, it is recommended to upgrade to IPython version 3.2.0 or later.

There is no specific workaround provided for this vulnerability. However, users can mitigate the risk by ensuring they are using the latest version of IPython and exercising caution when interacting with untrusted sources.

Related vulnerabilities

Recent vulnerabilities recorded for ipython.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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