Skip to content

Bundled MCP SDK embeds fast-uri 3.1.0 with known advisories: update before the Codex runtime turns on (#88) #94

Closed

Description

@erickb336

Found in the sage's repo pass (T206, run R715). Size: small. Not blocking today; must be done before #88 turns the Codex runtime on.

The problem

plugins/sage-codex/runtime/mcp-sdk.mjs bundles @modelcontextprotocol/server 2.3.1, which embeds fast-uri 3.1.0. npm audit lists 9 advisories for fast-uri 3.0.0 to 3.1.7 (8 high, 1 moderate), fixed in 3.1.8. Example: GHSA-q3j6-qgpj-74h6 (CVE-2026-6321, CVSS 7.5), where encoded dot segments collapse in normalize() and equal().

Why it is not reachable now

The SDK uses ajv (and through it fast-uri) only to check elicitation answers against a schema that the server itself sends. Sage asks no elicitation questions, its tools use zod schemas, and the runtime is inactive. Bumping the root fast-uri pin in package.json does not change the bundle: it only supplies the licence text.

Goal

The bundled MCP SDK carries fast-uri 3.1.8 or later before the runtime is active.

Scope

  • Watch for an @modelcontextprotocol/server release with fast-uri 3.1.8 or later, then update the pin and rebuild the bundle.
  • If none comes before Missing feature: automatic Sage workflows and gated autopilot in Codex #88 activates the runtime: decide with the owner between an override of the bundled fast-uri at build time (with a test that the SDK still works) and keeping the runtime off.
  • Add a check that fails the build when the bundle embeds a package version with a known advisory, or record why that is not possible.

Acceptance

  • npm audit reports no advisory for the bundled packages, or the PR says which remain and why they cannot be reached.
  • npm run build, npm run check and npm test pass.

Activity

  1. added
    codex
    on Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions