All vulnerabilities

PyPI

CVE-2026-141341

Coconut through 3.3.0 Code Execution via Jupyter Kernel Module Hijacking

Severity
High 8.5
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Weakness
CWE-427
Attack
Needs local access · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

Description

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.

From the CVE Program.

Affected software

SoftwareAffected versions
coconutPyPI · osv:PyPI:coconut
  • Every version up to 3.3.0

About coconut

Weekly downloads (PyPI)
1,260PyPI Stats, 1 Dec 2026

This is the only vulnerability in coconut in our list.

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141341