derwentx/wp-api-python:requirements.txt

Vulnerabilities

2 via 5 paths

Dependencies

16

Source

GitHub

Commit

1ae45d3b

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 2
  • 1
Severity
  • 3
Status
  • 3
  • 0
  • 0

medium severity

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: urllib3
  • Introduced through: urllib3@2.0.7, requests@2.31.0 and others

Detailed paths

  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f urllib3@2.0.7
    Remediation: Upgrade to urllib3@2.2.2.
  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f requests-oauthlib@2.0.0 requests@2.31.0 urllib3@2.0.7
    Remediation: Upgrade to requests-oauthlib@2.0.0.

Overview

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

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization header during cross-origin redirects when ProxyManager is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.

Notes:

To be vulnerable, the application must be doing all of the following:

  1. Setting the Proxy-Authorization header without using urllib3's built-in proxy support.

  2. Not disabling HTTP redirects (e.g. with redirects=False)

  3. Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.

Workarounds

  1. Using the Proxy-Authorization header with urllib3's ProxyManager.

  2. Disabling HTTP redirects using redirects=False when sending requests.

  3. Not using the Proxy-Authorization header.

Remediation

Upgrade urllib3 to version 1.26.19, 2.2.2 or higher.

References

medium severity

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: requests@2.31.0 and requests-oauthlib@2.0.0

Detailed paths

  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f requests@2.31.0
    Remediation: Upgrade to requests@2.32.2.
  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f requests-oauthlib@2.0.0 requests@2.31.0
    Remediation: Upgrade to requests-oauthlib@2.0.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

MPL-2.0 license

  • Module: certifi
  • Introduced through: requests@2.31.0 and requests-oauthlib@2.0.0

Detailed paths

  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f requests@2.31.0 certifi@2025.1.31
  • Introduced through: derwentx/wp-api-python@derwentx/wp-api-python#1ae45d3b95f4da968337d66e4bd932ce6cd4058f requests-oauthlib@2.0.0 requests@2.31.0 certifi@2025.1.31

MPL-2.0 license