CVE-2026-141341: Coconut through 3.3.0 Code Execution via Jupyter Kernel Module Hijacking

Published Dec 1, 2026
·
Updated

Coconut through 3.3.0 contains an untrusted search path vulnerability in its Jupyter kernelspec that allows attackers to execute code by placing a malicious coconut package beside a notebook. Because python -m coconut.icoconut puts the notebook's directory first on sys.path, a planted coconut/init.py runs as the user when the notebook opens and the kernel auto-starts.

Affected Software

1 affected component
pypi/coconut<=3.3.0

Event History

Dec 1, 2026
CVE Published
via MITRE·03:43 PM
Data Sourced
via MITRE·03:43 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:18 PM
DescriptionSeverityWeakness
Event
via NVD·04:18 PM
Exploit Published
via CISA·04:25 PM

Frequently Asked Questions

1

Who is exposed to this issue?

Users of Coconut through 3.3.0 are exposed when they open a notebook from a directory containing an attacker-planted coconut package. The code runs under the privileges of the user who opens the notebook and whose Coconut Jupyter kernel starts.

2

What does an attacker need to exploit it?

The attacker needs to place a malicious coconut/__init__.py beside the target notebook. User interaction is required: the target must open the notebook so that the Coconut kernel auto-starts.

3

Are users affected merely by having Coconut installed?

No. The described execution path depends on opening a notebook located in a directory where a malicious coconut package has been placed.

4

How can I check for potential compromise?

Inspect directories containing notebooks opened with the Coconut kernel for an unexpected coconut/__init__.py or other untrusted coconut package content placed alongside the notebook. Treat such files as potentially executed when the notebook was opened.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203