VYPR
Medium severity5.6NVD Advisory· Published Aug 20, 2025· Updated Apr 29, 2026

CVE-2025-9262

CVE-2025-9262

Description

A flaw has been found in wong2 mcp-cli 1.13.0. Affected is the function redirectToAuthorization of the file /src/oauth/provider.js of the component oAuth Handler. This manipulation causes os command injection. The attack may be initiated remotely. The attack is considered to have high complexity. The exploitability is told to be difficult. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
@wong2/mcp-clinpm
<= 1.13.0

Affected products

1

Patches

1
35629664cc5d

fix(auth): sanitize authorization URL (#16)

https://github.com/wong2/mcp-cli2h0ngAug 7, 2025via ghsa
2 files changed · +4 2
  • package.json+2 1 modified
    @@ -30,6 +30,7 @@
         "prompts": "^2.4.2",
         "uri-template": "^2.0.0",
         "yocto-spinner": "^0.2.2",
    -    "yoctocolors": "^2.1.1"
    +    "yoctocolors": "^2.1.1",
    +    "strict-url-sanitise": "^0.0.1"
       }
     }
    
  • src/oauth/provider.js+2 1 modified
    @@ -2,6 +2,7 @@
     
     import open from 'open'
     import { config } from '../config.js'
    +import { sanitizeUrl } from 'strict-url-sanitise'
     
     /** @typedef {import("@modelcontextprotocol/sdk/client/auth.js").OAuthClientProvider} OAuthClientProvider */
     /** @implements {OAuthClientProvider} */
    @@ -39,7 +40,7 @@ export class McpOAuthClientProvider {
       }
     
       async redirectToAuthorization(authorizationUrl) {
    -    await open(authorizationUrl.toString())
    +    await open(sanitizeUrl(authorizationUrl.toString()))
       }
     
       async codeVerifier() {
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

9

News mentions

0

No linked articles in our index yet.