{"schemaVersion":3,"id":"CVE-2026-111171","aliases":["GHSA-5hr4-253g-cpx2","CVE-2026-40072","PYSEC-2026-3414"],"status":"published","duplicateOf":null,"title":null,"description":"Web3.py 7.15.0 through 7.16.0 and 8.0.0b2 through 8.0.0 contains a server-side request forgery vulnerability because _check_ip_blocked() does not unwrap IPv4-mapped IPv6 addresses in CCIP Read URL validation. Malicious contracts can return OffchainLookup URLs with IPv4-mapped IPv6 hosts or AAAA records, making clients with CCIP Read enabled send requests to loopback, private, or link-local services.","dates":{"published":"2026-10-15T18:57:55.904Z","modified":"2026-10-15T19:29:53.958Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","exploitability":10,"impact":4.5,"computed":true}]},"epss":{"probability":0.00341,"percentile":0.26328,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-16T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00341,"percentile":0.26328}],"last30":[{"date":"2026-10-16T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00341,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00341,"percentile":0.26328}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_APEWORX_WEB3.PY","name":"Web3.Py","source":"github","url":"https://github.com/ApeWorX/web3.py/security/advisories/GHSA-5hr4-253g-cpx2","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-918","name":"Server-Side Request Forgery (SSRF)","description":"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.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/918.html"}],"affected":[{"vendor":"ethereum","product":"web3.py","name":"web3.py","label":"web3.py","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.15.0, ≤ 7.16.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0b2, ≤ 8.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.15.0, ≤ 7.16.0 | ≥ 8.0.0b2, ≤ 8.0.0","eol":null,"hubHref":"/vendor/ethereum/web3py"},{"vendor":"PyPI","product":"web3","name":"web3","label":"web3","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/web3","purlType":"pypi","versions":[{"text":"≥ 6.0.0b3, < 7.15.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0b1, < 8.0.0b2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0b3, < 7.15.0 | ≥ 8.0.0b1, < 8.0.0b2","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ethereum/web3.py/pull/3875","label":"github.com/ethereum/web3.py/pull/3875","hostname":"github.com","tags":["Issue Tracking","Technical Description","Patch"]},{"url":"https://github.com/ethereum/web3.py/blob/c8c1ed0c9e77e1a8b74902e6a6825e0b00534b10/web3/utils/ccip_url_validation.py#L16-L57","label":"github.com/ethereum/…","hostname":"github.com","tags":["Technical Description"]},{"url":"https://github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2","label":"github.com/ethereum/web3.py/security/advisories/GHSA-5hr4-253g-cpx2","hostname":"github.com","tags":["Related","Vendor Advisory","WEB"]},{"url":"https://github.com/ethereum/web3.py","label":"github.com/ethereum/web3.py","hostname":"github.com","tags":["Product","PACKAGE"]},{"url":"https://www.vulncheck.com/advisories/web3-py-7.15.0-through-7.16.0-and-8.0-0b2-through-8.0.0-ccip-read-ssrf-bypass","label":"www.vulncheck.com/advisories/…","hostname":"www.vulncheck.com","tags":["Third Party Advisory"]},{"url":"https://github.com/ApeWorX/web3.py/security/advisories/GHSA-5hr4-253g-cpx2","label":"github.com/ApeWorX/web3.py/security/advisories/GHSA-5hr4-253g-cpx2","hostname":"github.com","tags":["Exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40072","label":"nvd.nist.gov/vuln/detail/CVE-2026-40072","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e","label":"github.com/ethereum/web3.py/commit/b1c57bb0a124359c9902daaefab4d8af7c3c4c1e","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/web3","label":"pypi.org/project/web3","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-5hr4-253g-cpx2","label":"github.com/advisories/GHSA-5hr4-253g-cpx2","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-15T18:57:55.904Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-15T19:29:53.958Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T18:32:11.429Z","stale":false,"partial":false}}