CVE-2026-49384: PyCharm: stored XSS via Jupyter Markdown cells
MEDIUMJetBrains PyCharm versions before 2025.3.4 contain a stored XSS vulnerability in the IDE's Jupyter notebook Markdown renderer, allowing an attacker to embed malicious scripts in notebook cells that execute silently when a developer opens the file. For AI/ML teams, this is a meaningful risk because Jupyter notebooks are first-class artifacts routinely shared via Git repositories, model hubs, and collaboration tools — a single crafted notebook reaching a developer's workstation can steal API keys (OpenAI, HuggingFace, cloud providers), session tokens, or environment variables stored in the IDE context. No public exploits exist and the vulnerability is absent from CISA KEV, making opportunistic mass exploitation unlikely, but the low attack complexity (AC:L, no privileges required, scoped impact S:C) keeps the barrier low for targeted supply chain or social engineering scenarios. Teams should update PyCharm to 2025.3.4 immediately and enforce policies against opening notebooks from unreviewed or external sources.
What is the risk?
Medium risk overall, elevated for organizations with active Jupyter notebook sharing workflows. CVSS 6.1 (S:C/C:L/I:L/A:N) reflects scoped impact and mandatory user interaction, which prevents automated propagation. However, the stored nature of the XSS means the payload persists in the notebook file itself and can propagate through version control systems, CI pipelines, and model sharing platforms — significantly broadening reach beyond a single-user exploit. Attack complexity is low and no attacker privileges are required, making it accessible to moderately skilled adversaries. No EPSS data available; not in CISA KEV; no scanner templates or public proof-of-concept. Risk is primarily realized in collaborative AI/ML development environments where notebook sharing is routine.
How does the attack unfold?
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch: Upgrade JetBrains PyCharm to version 2025.3.4 or later (vendor advisory: jetbrains.com/privacy-security/issues-fixed/).
-
Workaround: Until patching, restrict opening Jupyter notebooks from external, unverified, or untrusted sources in PyCharm.
-
Pipeline control: Integrate notebook sanitization (nbstripout, nbconvert output stripping) and static XSS scanning in CI/CD pipelines before notebooks are merged to shared repositories.
-
Credential hygiene: Rotate any AI service API keys, cloud credentials, or session tokens that may have been present in PyCharm's environment if compromise is suspected.
-
Detection: Monitor for anomalous network connections originating from PyCharm processes; review IDE logs for unexpected script execution after notebook opens.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-49384?
JetBrains PyCharm versions before 2025.3.4 contain a stored XSS vulnerability in the IDE's Jupyter notebook Markdown renderer, allowing an attacker to embed malicious scripts in notebook cells that execute silently when a developer opens the file. For AI/ML teams, this is a meaningful risk because Jupyter notebooks are first-class artifacts routinely shared via Git repositories, model hubs, and collaboration tools — a single crafted notebook reaching a developer's workstation can steal API keys (OpenAI, HuggingFace, cloud providers), session tokens, or environment variables stored in the IDE context. No public exploits exist and the vulnerability is absent from CISA KEV, making opportunistic mass exploitation unlikely, but the low attack complexity (AC:L, no privileges required, scoped impact S:C) keeps the barrier low for targeted supply chain or social engineering scenarios. Teams should update PyCharm to 2025.3.4 immediately and enforce policies against opening notebooks from unreviewed or external sources.
Is CVE-2026-49384 actively exploited?
No confirmed active exploitation of CVE-2026-49384 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-49384?
1. Patch: Upgrade JetBrains PyCharm to version 2025.3.4 or later (vendor advisory: jetbrains.com/privacy-security/issues-fixed/). 2. Workaround: Until patching, restrict opening Jupyter notebooks from external, unverified, or untrusted sources in PyCharm. 3. Pipeline control: Integrate notebook sanitization (nbstripout, nbconvert output stripping) and static XSS scanning in CI/CD pipelines before notebooks are merged to shared repositories. 4. Credential hygiene: Rotate any AI service API keys, cloud credentials, or session tokens that may have been present in PyCharm's environment if compromise is suspected. 5. Detection: Monitor for anomalous network connections originating from PyCharm processes; review IDE logs for unexpected script execution after notebook opens.
What systems are affected by CVE-2026-49384?
This vulnerability affects the following AI/ML architecture patterns: ML development environments, Jupyter notebook workflows, Training pipelines, Model development environments.
What is the CVSS score for CVE-2026-49384?
CVE-2026-49384 has a CVSS v3.1 base score of 6.1 (MEDIUM). The EPSS exploitation probability is 0.18%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0011.000 Unsafe AI Artifacts AML.T0025 Exfiltration via Cyber Means AML.T0049 Exploit Public-Facing Application Compliance Controls Affected
What are the technical details?
Original Advisory
In JetBrains PyCharm before 2025.3.4 stored XSS in Jupyter notebook Markdown cells was possible
Exploitation Scenario
An adversary targeting an AI/ML development team publishes a Jupyter notebook on GitHub as a 'pre-trained LLM fine-tuning example' or shares it directly via Slack as onboarding material. The notebook contains a stored XSS payload embedded within a Markdown cell — invisible to casual review and disguised as a heading or documentation block. When a developer using PyCharm < 2025.3.4 opens the notebook, the payload executes within PyCharm's rendering context, silently harvesting the developer's OpenAI/Anthropic API keys, HuggingFace tokens, and any AWS/GCP credentials present as environment variables. These credentials are exfiltrated to an attacker-controlled server, enabling access to the organization's ML training infrastructure and model registries.
Weaknesses (CWE)
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Primary
CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE-79 — Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'): The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
- [Architecture and Design] Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482]. Examples of libraries and frameworks that make it easier to generate properly encoded output include Microsoft's Anti-XSS library, the OWASP ESAPI Encoding module, and Apache Wicket.
- [Implementation, Architecture and Design] Understand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required encoding strategies. For any data that will be output to another web page, especially any data that was received from external inputs, use the appropriate encoding on all non-alphanumeric characters. Parts of the same output document may require different encodings, which will vary depending on whether the output is in the: etc. Note that HTML Entity Encoding is only appropriate for the HTML body. Consult the XSS Prevention Cheat Sheet [REF-724] for more details on the types of encoding and escaping that are needed. HTML body Element attributes (such as src="XYZ") URIs JavaScript sections Casca
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N References
Timeline
Related Vulnerabilities
CVE-2023-3765 10.0 MLflow: path traversal allows arbitrary file read
Same attack type: Supply Chain CVE-2025-5120 10.0 smolagents: sandbox escape enables unauthenticated RCE
Same attack type: Supply Chain CVE-2025-2828 10.0 LangChain RequestsToolkit: SSRF exposes cloud metadata
Same attack type: Data Extraction CVE-2025-53767 10.0 Azure OpenAI: SSRF EoP, no auth required (CVSS 10)
Same attack type: Data Extraction CVE-2025-59528 10.0 Flowise: Unauthenticated RCE via MCP config injection
Same attack type: Supply Chain