{"schemaVersion":3,"id":"CVE-2025-66416","aliases":["GHSA-9h52-p55h-vw2f","PYSEC-2026-1617","CGA-7mmq-hg7p-hjgp","CGA-c85v-9x4v-23vg","CGA-j6xw-vm35-2fwm","CGA-p2fw-xfwq-77vw","CGA-q2pq-j4rh-9mvq"],"status":"published","duplicateOf":null,"title":null,"description":"The MCP Python SDK, called `mcp` on PyPI, is a Python implementation of the Model Context Protocol (MCP). Prior to version 1.23.0, tThe Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication using FastMCP with streamable HTTP or SSE transport, and has not configured TransportSecuritySettings, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances. Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport. This vulnerability is fixed in 1.23.0.","dates":{"published":"2025-12-02T18:14:28.310Z","modified":"2025-12-02T18:45:53.656Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":7.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":7.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":7.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.6,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/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":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00512,"percentile":0.42438,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00512},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00512,"percentile":0.42438}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00512,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00512,"percentile":0.42438}]},"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":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default","description":"The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1188.html"}],"affected":[{"vendor":"chainguard","product":"open-webui-compat","name":"open-webui-compat","label":"open-webui-compat","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/open-webui-compat","purlType":"apk","versions":[{"text":"< 0.6.40-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.40-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3-semgrep","name":"py3-semgrep","label":"py3-semgrep","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3-semgrep","purlType":"apk","versions":[{"text":"< 1.145.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.145.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"semgrep","name":"semgrep","label":"semgrep","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/semgrep","purlType":"apk","versions":[{"text":"< 1.145.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.145.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"open-webui-compat","name":"open-webui-compat","label":"open-webui-compat","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/open-webui-compat","purlType":"apk","versions":[{"text":"< 0.6.40-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.6.40-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3-semgrep","name":"py3-semgrep","label":"py3-semgrep","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3-semgrep","purlType":"apk","versions":[{"text":"< 1.145.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.145.0-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"semgrep","name":"semgrep","label":"semgrep","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/semgrep","purlType":"apk","versions":[{"text":"< 1.145.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.145.0-r0","eol":null,"hubHref":null},{"vendor":"lfprojects","product":"mcp_python_sdk","name":"mcp python sdk","label":"mcp_python_sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.23.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.23.0","eol":null,"hubHref":"/vendor/lfprojects/mcp_python_sdk"},{"vendor":"modelcontextprotocol","product":"python-sdk","name":"python-sdk","label":"python-sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.23.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.23.0","eol":null,"hubHref":"/vendor/modelcontextprotocol/python-sdk"},{"vendor":"PyPI","product":"mcp","name":"mcp","label":"mcp","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/mcp","purlType":"pypi","versions":[{"text":"< 1.23.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.23.0","eol":null,"hubHref":null}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f","label":"github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Vendor Advisory"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99","label":"github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66416","label":"nvd.nist.gov/vuln/detail/CVE-2025-66416","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/advisories/GHSA-9h52-p55h-vw2f","label":"github.com/advisories/GHSA-9h52-p55h-vw2f","hostname":"github.com","tags":["Advisory"]},{"url":"https://github.com/modelcontextprotocol/python-sdk","label":"github.com/modelcontextprotocol/python-sdk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1617.yaml","label":"github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1617.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://pypi.org/project/mcp","label":"pypi.org/project/mcp","hostname":"pypi.org","tags":["WEB","PACKAGE"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66416.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66416.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-4RR5-V9CG-V92P"]},"timeline":[{"kind":"published","date":"2025-12-02T18:14:28.310Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-12-02T18:45:53.656Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":33,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T09:21:32.738Z","stale":false,"partial":false}}