Vulnerabilities in pkg:pypi/requests-hardened

PACKAGE
Advisory Identifier: GHSA-vh75-fwv3-pqrh
Advisory Summary

CVE-2026-42175 is a MODERATE (CVSS 6.5) requests-hardened is vulnerable to server-side vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Requests hardened libraries in the PyPI ecosystem. The issue involves requests-hardened is vulnerable to server-side request forgery. Remediation is available by upgrading affected packages to version 1.2.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/requests-hardened

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/requests-hardened. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-vh75-fwv3-pqrh CVE-2026-42175 MODERATE requests-hardened is Vulnerable to Server-Side Request Forgery

CVE-2026-42175 at a Glance

CVE Identifier CVE-2026-42175
GHSA Identifier GHSA-vh75-fwv3-pqrh
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Requests hardened
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-42175

To remediate this vulnerability, upgrade all affected Requests hardened dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

requests-hardened fixed: 1.2.1
pip install requests-hardened>=1.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show requests-hardened

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-42175, inspect your installed packages using pip:

pip show requests-hardened

Analyze the terminal output to locate any version of Requests hardened in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), your application is affected.

Note: The pip show requests-hardened command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Requests hardened, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The SSRF protection in `requests-hardened` prior to version 1.2.1 fails to block IP addresses within the RFC 6598 Shared Address Space (`100.64.0.0/10`). An attacker who can supply arbitrary URLs to `requests-hardened` could exploit this gap to access internal services hosted within `100.64.0.0/10`. This is for example relevant in environments such as AWS EKS where `100.64.0.0/10` is commonly used as the default pod CIDR. The impact is environment-dependent, deployments that utilize the affected CIDR range for internal networking are exposed to SSRF bypass, while others may not be affected. The issue is resolved in version 1.2.1 by extending the IP filtering logic to explicitly block the RFC 6598 range in addition to standard private addresses, as well as blocking all other reserved addresses (such as multicast) to prevent the re-occurrence of similar issues. Version 1.2.1 is now blocking the following CIDRs: - `192.88.99.0/24` - 6to4 relay anycast - `100.64.0.0/10` - CG-NAT - `5f00::/16` - IPv6 Segment Routing - `64:ff9b::/96` - used for IPv6 & IPv4 translation (NAT64) - `2001:20::/28` - ORCHIDv2 (overlay identifiers) - `224.0.0.0/4` - multicast - `ff00::/8` - multicast ## Resources - https://github.com/python/cpython/issues/119812 - https://github.com/saleor/requests-hardened/commit/b7403f88d3b3689e57435b75b51691a160aaeef5 - the fix itself - https://github.com/saleor/requests-hardened/commit/a266b3958bb142bca515b3c230fdea19fbda327c - follow up, adding additional support for outdated Python versions (`3.11.9` and `3.10.11` instead of only `3.11.15` and `3.10.20`) - https://github.com/saleor/requests-hardened/releases/tag/v1.2.1

CVE-2026-42175 Affected Requests hardened Versions

1 component(s)
Fixed Versions:
1.2.1
Product / Package Ecosystem Affected Versions Fixed Version
requests-hardened
PyPI
< 1.2.1
1.2.1

References

Frequently Asked Questions

What is CVE-2026-42175?
CVE-2026-42175 is a security vulnerability in Requests hardened involving requests-hardened is Vulnerable to Server-Side Request Forgery under CWE-918: Server-Side Request Forgery (SSRF).
Which Requests hardened versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: requests-hardened.
What version fixes CVE-2026-42175?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is requests-hardened affected?
Yes, requests-hardened is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of CVE-2026-42175?
CVE-2026-42175 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with CVE-2026-42175?
CVE-2026-42175 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check PyPI dependencies for CVE-2026-42175?
Run the dependency tree command: 'pip show requests-hardened'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vh75-fwv3-pqrh",
  "modified" : "2026-05-13T16:26:26Z",
  "published" : "2026-05-05T19:52:45Z",
  "aliases" : [ "CVE-2026-42175" ],
  "summary" : "requests-hardened is Vulnerable to Server-Side Request Forgery",
  "details" : "The SSRF protection in `requests-hardened` prior to version 1.2.1 fails to block IP addresses within the RFC 6598 Shared Address Space (`100.64.0.0/10`). An attacker who can supply arbitrary URLs to `requests-hardened` could exploit this gap to access internal services hosted within `100.64.0.0/10`. This is for example relevant in environments such as AWS EKS where `100.64.0.0/10` is commonly used as the default pod CIDR.\n\nThe impact is environment-dependent, deployments that utilize the affected CIDR range for internal networking are exposed to SSRF bypass, while others may not be affected.\n\nThe issue is resolved in version 1.2.1 by extending the IP filtering logic to explicitly block the RFC 6598 range in addition to standard private addresses, as well as blocking all other reserved addresses (such as multicast) to prevent the re-occurrence of similar issues.\n\nVersion 1.2.1 is now blocking the following CIDRs:\n\n- `192.88.99.0/24` - 6to4 relay anycast\n- `100.64.0.0/10` - CG-NAT\n- `5f00::/16` - IPv6 Segment Routing\n- `64:ff9b::/96` - used for IPv6 & IPv4 translation (NAT64)\n- `2001:20::/28` - ORCHIDv2 (overlay identifiers)\n- `224.0.0.0/4` - multicast\n- `ff00::/8` - multicast\n\n## Resources\n\n- https://github.com/python/cpython/issues/119812\n- https://github.com/saleor/requests-hardened/commit/b7403f88d3b3689e57435b75b51691a160aaeef5 - the fix itself\n- https://github.com/saleor/requests-hardened/commit/a266b3958bb142bca515b3c230fdea19fbda327c - follow up, adding additional support for outdated Python versions (`3.11.9` and `3.10.11` instead of only `3.11.15` and `3.10.20`)\n- https://github.com/saleor/requests-hardened/releases/tag/v1.2.1",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "requests-hardened"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/saleor/requests-hardened/security/advisories/GHSA-vh75-fwv3-pqrh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42175"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/saleor/requests-hardened/commit/a266b3958bb142bca515b3c230fdea19fbda327c"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/saleor/requests-hardened/commit/b7403f88d3b3689e57435b75b51691a160aaeef5"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/saleor/requests-hardened"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/saleor/requests-hardened/releases/tag/v1.2.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-05T19:52:45Z",
    "nvd_published_at" : "2026-05-12T18:17:24Z"
  }
}