CVE-2026-141341
Severity CVSS v4.0:
HIGH
Type:
CWE-427
Uncontrolled Search Path Element
Publication date:
01/12/2026
Last modified:
01/12/2026
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.
Impact
Base Score 4.0
8.50
Severity 4.0
HIGH
Base Score 3.x
7.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://github.com/evhub/coconut/blob/v3.3.0/coconut/icoconut/coconut_py3/kernel.json
- https://github.com/evhub/coconut/commit/8a26f0db5c86f35abc8c9f452d02448d505c59ae
- https://github.com/evhub/coconut/security/advisories/GHSA-85q3-whq8-63qq
- https://www.vulncheck.com/advisories/coconut-through-3.3.0-code-execution-via-jupyter-kernel-module-hijacking
- https://github.com/evhub/coconut/security/advisories/GHSA-85q3-whq8-63qq


