CVE-2026-141341

7.8High

Published Dec 1, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.8CVSS

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.

remediation — bash
$ pip install --upgrade coconut

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-141341

More fully triaged vulnerabilities you may want to check next.