Skip to content
News
SYSTEMS SHIFT:

MCP Python SDK Fix Closes OAuth Credential Redirect Flaw

Newsroom brief

The official MCP Python SDK has fixed a flaw that could let a malicious server redirect OAuth secrets, authorization codes and PKCE proof keys during AI tool sign-ins.

Verified against source materialSource: The Hacker News
MCP Python SDK Fix Closes OAuth Credential Redirect Flaw
Image source: The Hacker News

A flaw in the official MCP Python SDK created a way for a malicious Model Context Protocol server to pull OAuth credentials away from the service an application meant to use, The Hacker News reported from the maintainers' advisory and Cycode's analysis.

The affected SDK versions could send three sensitive pieces of the login exchange to an attacker-controlled token endpoint: the client secret, the authorization code and the PKCE proof key. Fixed releases are now available as versions 1.30.0 and 2.2.0.

The issue matters because MCP is becoming a standard connection layer between AI applications and outside tools or data sources. The Python SDK is used to build MCP servers and clients, so a weakness in the way those clients validate login metadata can sit directly in the path between an AI application and the services it is allowed to access.

The vulnerable flow began when an MCP client asked the server it was connecting to where the relevant authorization server could be found. On affected versions, that response was not always checked closely enough. A hostile server could point the client toward an attacker-operated login service, or serve metadata that named the user's real service while routing credentials somewhere else.

Once those values left the intended flow, the attacker could use them to request an access token from the genuine login service. Cycode demonstrated that exchange in testing and found that the resulting token carried the permissions already granted to the application. The client secret also remained useful until it was rotated, turning a one-time login problem into a longer-lived credential exposure.

PKCE is meant to reduce the value of a stolen authorization code by requiring a matching proof key during the token exchange. In this case, the same flawed path could hand over the proof key too, removing that protection for the affected flow.

The maintainers rated the weakness high for providers that run without a person present, with a CVSS score of 7.5. The score falls to 6.5 for the interactive provider because a user still has to approve the sign-in. No CVE had been assigned as of September 29.

Interactive sign-ins create another constraint on exploitation, but not a complete defense. Cycode said the approval page still showed the legitimate service, which means a user could authorize what appeared to be a normal login while the token exchange was being redirected.

The repaired SDK now checks that the authorization server's issuer matches the expected resource metadata before it proceeds. For teams building AI tools around MCP, the immediate control is straightforward: update the SDK, rotate exposed secrets where a vulnerable flow may have run, and review integrations that accept authorization metadata from servers they do not fully control.

Share this article
inXf

Related articles

More
Google uncovers AI agent that writes and launches exploits without human direction
Cybersecurity

Google uncovers AI agent that writes and launches exploits without human direction

An exposed staging server revealed automated exploit development, while separate campaigns abused model quotas and developer-tool settings, Google investigators found.

UK Test Finds AI Agents Trying to Social-Engineer Real People
Cybersecurity

UK Test Finds AI Agents Trying to Social-Engineer Real People

CNBC reported that the UK AI Security Institute observed Anthropic and OpenAI model agents taking potentially harmful actions during permissive cyber tests, with Anthropic and OpenAI saying the conditions did not reflect ordinary production use.

Optimizely signup flaw exposes at least 178 organisations to malicious scripts
Cybersecurity

Optimizely signup flaw exposes at least 178 organisations to malicious scripts

Attackers used Optimizely's account signup flow to inject card-skimming and cryptocurrency-stealing code. Customers disabled the tool while the company fixed the flaw.

GitHub Actions Malware Risk Returned When Old Tags Came Back Online
Cybersecurity

GitHub Actions Malware Risk Returned When Old Tags Came Back Online

Two compromised GitHub Actions were disabled again after old malicious release tags became reachable, reviving CI/CD credential-theft risk tied to Mini Shai-Hulud.

NCSC warns AI-assisted attacks are accelerating against known flaws
Cybersecurity

NCSC warns AI-assisted attacks are accelerating against known flaws

UK cyber officials have observed a rise in AI-assisted attacks since September, but say the weaknesses remain familiar and largely patchable. CrowdStrike describes agents taking on more attack decisions.

OVHcloud CLI attack replaced releases using stolen developer keys
Cybersecurity

OVHcloud CLI attack replaced releases using stolen developer keys

A customer flagged malicious OVHcloud CLI releases that were blocked within 94 minutes. The company traced the attack to stolen developer credentials following an extension installation on a personal MacBook.

OpenAI Fixes Agent Flaw After ChatGPT Workspace Insider Risk
Cybersecurity

OpenAI Fixes Agent Flaw After ChatGPT Workspace Insider Risk

SecurityWeek reported that OpenAI fixed the AgentForger flaw in ChatGPT Workspace Agents after Zenity Labs showed how a phishing link could create a hidden autonomous agent with access to already-authorised connectors.

Anthropic Program Pairs Claude With Infrastructure Security Teams
AI

Anthropic Program Pairs Claude With Infrastructure Security Teams

Anthropic is pairing Claude models, its engineers and outside cybersecurity firms to scan critical infrastructure and open-source software for vulnerabilities, with an opt-in service for maintainers.

Keep Reading

More Stories

Latest
Cloudflare jumps 10% as encryption warning lifts cybersecurity stocksCybersecurityDec 4, 2026Cloudflare jumps 10% as encryption warning lifts cybersecurity stocksCloudflare, Palo Alto Networks and CrowdStrike rose in Thursday premarket trading after major technology companies urged encryption upgrades following an NSA alert.Lava sets December 9 India launch for Bold N4 5G and N4 Pro 4GTelco & ConnectivityDec 4, 2026Lava sets December 9 India launch for Bold N4 5G and N4 Pro 4GLava's next Bold phones are scheduled for December 9, with a 7,000mAh battery in the 4G Pro model and a sub-Rs 15,000 price planned for the N4 5G.Isomorph raises $3.5 million to expand AI governance teams and US salesAIDec 4, 2026Isomorph raises $3.5 million to expand AI governance teams and US salesRTP Global led the seed round for Isomorph, which plans engineering expansion in Bengaluru and San Francisco and a bigger US go-to-market operation.Premji Invest announces $1.5 billion fund for US AI, chip and robotics companiesCloud & Data CentersDec 4, 2026Premji Invest announces $1.5 billion fund for US AI, chip and robotics companiesFund V targets early- and growth-stage US businesses, with Premji Invest planning support through to public markets. Its remit also includes infrastructure software and life sciences.LITEON and MaiaEdge target existing telecom sites for AI inference, with HDCO building first serviceCloud & Data CentersDec 4, 2026LITEON and MaiaEdge target existing telecom sites for AI inference, with HDCO building first serviceThe joint solution combines rack-level power and cooling with private connectivity. HDCO is developing an inference offering using GPUs at a solar-powered LITEON site in Texas, with South America planned next.Pangram raises $50m as Andreessen Horowitz backs AI detectionAIDec 4, 2026Pangram raises $50m as Andreessen Horowitz backs AI detectionAndreessen Horowitz led Pangram Labs’ Series A, with the New York start-up planning to accelerate research and train more advanced AI-detection models.UK advances ransomware payment ban but drops advance-notification planCybersecurityDec 3, 2026UK advances ransomware payment ban but drops advance-notification planBritain plans to bar hospitals, schools, councils and critical infrastructure operators from paying ransoms, while limiting mandatory attack reporting to medium and large organizations and requiring payment disclosure only afterward.Viettel starts selling Starlink in Vietnam with VND9.3 million kitsCapital & PolicyDec 3, 2026Viettel starts selling Starlink in Vietnam with VND9.3 million kitsViettel Telecom is offering Starlink broadband in Vietnam after obtaining a resale licence, with monthly service plans starting at VND1.59 million.Qatar Cabinet approves bankruptcy bill prioritising viable business rehabilitationCapital & PolicyDec 3, 2026Qatar Cabinet approves bankruptcy bill prioritising viable business rehabilitationThe draft would replace bankruptcy provisions in Qatar's 2006 Commercial Law. The Cabinet approved referring it to the Shura Council, with rehabilitation before liquidation among its aims.French crypto ownership reaches 12% as AMF survey exposes scam lossesCrypto/Web3Dec 3, 2026French crypto ownership reaches 12% as AMF survey exposes scam lossesAn AMF survey of more than 9,000 French adults puts current crypto-asset ownership at 12%, while 24% of current holders report having fallen victim to scams.iPhone Duo beats Samsung foldables by 37% in third-week salesDevices & Consumer TechDec 3, 2026iPhone Duo beats Samsung foldables by 37% in third-week salesCounterpoint figures put Apple ahead in the iPhone Duo’s third week, but Samsung’s Galaxy Z Fold 8 models retained a 2% combined lead across the full three weeks.US Air Force Cloud One breach blocks application updatesCybersecurityDec 3, 2026US Air Force Cloud One breach blocks application updatesA reported intrusion into the military cloud platform has disrupted updates and migration work. The extent of access and any data theft remain unclear.