@modelcontextprotocol/sdk@1.30.1

Model Context Protocol implementation for TypeScript

  • latest version

    1.32.1

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    7 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @modelcontextprotocol/sdk package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Insufficiently Protected Credentials

    @modelcontextprotocol/sdk is a Model Context Protocol implementation for TypeScript

    Affected versions of this package are vulnerable to Insufficiently Protected Credentials via the fetchToken and discardIfIssuerMismatch functions in the OAuth client authentication flow, where the SEP-2352 issuer check is not applied consistently. An attacker controlling a malicious authorization server can cause the client to send OAuth client credentials (client information) to an unintended server, because the issuer stamp on stored credentials is not validated before the token request is dispatched. This allows an attacker to harvest client credentials by redirecting token requests to a server whose issuer does not match the one the credentials were originally registered with.

    How to fix Insufficiently Protected Credentials?

    Upgrade @modelcontextprotocol/sdk to version 1.31.0 or higher.

    >=1.12.0 <1.31.0