CVE-2026-141594: kafe2 through 2.11.0 Code Execution via Unsafe YAML Loading

Published Dec 2, 2026
·
Updated

kafe2 through 2.11.0 contains an unsafe deserialization vulnerability in YamlReaderMixin that allows attackers to execute Python code by supplying crafted YAML fit or data files. Attackers can embed python/object/apply tags parsed by yaml.load() via kafe2go or fromfile() to run code with the victim's privileges.

Affected Software

1 affected component
pypi/kafe2<=2.11.0

Event History

Dec 2, 2026
CVE Published
via MITRE·01:08 AM
Data Sourced
via MITRE·01:08 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:17 AM
DescriptionSeverityWeakness
Event
via NVD·02:17 AM

Frequently Asked Questions

1

Who is exposed to this vulnerability?

Users of kafe2 through 2.11.0 are exposed when they load YAML fit or data files through kafe2go or from_file(). The crafted file is processed with the privileges of the user running kafe2.

2

What does an attacker need to exploit it?

An attacker needs to supply a crafted YAML fit or data file and persuade a user to load it. The supplied YAML can contain python/object/apply tags that are processed by yaml.load().

3

Are default installations affected?

The issue is present in the YAML loading functionality in kafe2 through 2.11.0. Exploitation requires use of the affected YAML file-loading paths rather than merely having the package installed.

4

What can be done before a fix is applied?

Do not load YAML fit or data files from untrusted sources using kafe2go or from_file(). Treat externally supplied YAML files as potentially executable content and run necessary processing with minimal privileges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203