CVE-2026-141341 PUBLISHED

Coconut through 3.3.0 Code Execution via Jupyter Kernel Module Hijacking

Assigner: VulnCheck
Reserved: 01.12.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

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
CVSS Score: 8.5

Product Status

Vendor evhub
Product coconut
Versions Default: unaffected
  • affected from 0 to 3.3.0 (incl.)

Credits

  • Dilanka Kaushal Hewage (r3vpwnx) finder

References

Problem Types

  • Uncontrolled Search Path Element CWE