CVE-2022-26184: Poetry Package Untrusted Search Path Vulnerability

poetry Updated 02 Oct 2025

Summary

21/03/2022
Yes i
Critical
9.8

CVE-2022-26184: Poetry v1.1.9 and below was discovered to contain an untrusted search path which causes the application to behave in unexpected ways when users execute Poetry commands in a directory containing malicious content. Affects poetry versions < 1.1.9. Fixed in 1.1.9. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Poetry is a Python dependency management and packaging tool. It provides a simple and intuitive way to manage project dependencies and create distributable packages. The Poetry package, available on PyPI, is widely used by Python developers to streamline their development workflow. However, versions 1.1.9 and below of Poetry have been found to contain a vulnerability that allows for unexpected behavior when executing Poetry commands in a directory containing malicious content. This vulnerability specifically affects the Windows operating system.

Vulnerability Detail

The vulnerability in Poetry arises from an untrusted search path. When Poetry commands are executed in a directory containing malicious content, the application may behave in unexpected ways. This can lead to various security risks, such as arbitrary code execution or unintended modifications to the user's system. The vulnerability is present in Poetry versions 1.1.9 and below, making them susceptible to exploitation. It is important for users to update to a fixed version to mitigate the risk.

How To Fix

Latest published version: 2.5.1 as of 23 Oct 2026

pip install --upgrade "poetry==2.5.1"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.9

This is the first release that contains the fix.

pip install --upgrade "poetry==1.1.9"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The Poetry package versions 1.1.9 and below are vulnerable to an untrusted search path issue on Windows. This vulnerability can lead to unexpected behavior and potential security risks. Users should update to Poetry version 1.1.10 or later to mitigate the risk. Exercise caution when executing Poetry commands in directories with untrusted or potentially malicious content. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for poetry →

Share this vulnerability

FAQ

You can check the version of Poetry installed on your system by running the command poetry --version in your terminal.

Yes, this vulnerability affects Poetry when running on the Windows operating system. Other operating systems are not affected.

At the time of this advisory, there are no known exploits for this vulnerability. However, it is crucial to update to a fixed version as soon as possible to prevent potential exploitation.

While waiting for the fix, it is recommended to exercise caution when executing Poetry commands in directories with untrusted or potentially malicious content. Consider using alternative methods or tools for dependency management until the vulnerability is resolved.

You can find more information about this vulnerability, including technical details and the fixed version, in the official advisory on the Python Package Advisory Database: https://github.com/pypa/advisory-database/blob/main/vulns/poetry/PYSEC-2022-234.yaml.

Related vulnerabilities

Recent vulnerabilities recorded for poetry.

How To Fix

Latest published version: 2.5.1 as of 23 Oct 2026

pip install --upgrade "poetry==2.5.1"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.1.9

This is the first release that contains the fix.

pip install --upgrade "poetry==1.1.9"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback