CVE-2026-42175: Requests hardened Requests-hardened Is Vulnerable To Server-Side Vulnerability
MODERATECVE-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.
CVE-2026-42175 at a Glance
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).
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.
pip install requests-hardened>=1.2.1
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
CVE-2026-42175 Affected Requests hardened Versions
1 component(s)| 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?
Which Requests hardened versions are affected?
What version fixes CVE-2026-42175?
Is requests-hardened affected?
What is the CVSS score of CVE-2026-42175?
What CWE is associated with CVE-2026-42175?
How can I check PyPI dependencies for CVE-2026-42175?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}