CVE-2026-141341
7.8HighPublished Dec 1, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-427
What an attacker gets
Local attackers can execute arbitrary code as the user by placing a malicious package in the same directory as a Jupyter notebook. This requires a user to open a notebook in a directory containing the malicious file.
Root cause
The Jupyter kernelspec incorrectly adds the current working directory to the Python sys.path, causing the application to import local files as modules.
Affected versions
Coconut through 3.3.0
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to Coconut 3.3.1 or later. If you cannot upgrade, avoid opening Jupyter notebooks in untrusted directories.
$ pip install --upgrade coconutAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- 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
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1413437.8HighAttackers can execute arbitrary code with your privileges by providing a malicious PyTorch model file. This requires a user to load a crafted model via the InferencePipeline.
- CVE-2026-1413428.8HighAuthenticated attackers can execute arbitrary Python code as the server process. This allows them to steal data source credentials and LLM API keys.
- CVE-2026-1413407.0HighAttackers can execute arbitrary commands as the user running the process. This requires a user to process a maliciously named genome file through the ANImf algorithm.
- CVE-2026-1413397.8HighAttackers can execute arbitrary code with your user privileges. They need to trick you into loading a malicious clip_img_encoder.pt file.
- CVE-2026-1413387.8HighAttackers can execute arbitrary commands as the analyst by providing a maliciously named BAM or SAM file. This requires the analyst to process a file with shell syntax in its filename using inStrain.
- CVE-2026-1413308.1HighUnauthenticated attackers can hijack user sessions by tricking victims into clicking a malicious link. This allows the attacker to steal the victim's login name and persistent app password.