Only the latest minor version receives bug fixes and security updates. A new minor line (1.16.0) replaces the previous one as the supported line as soon as it is published; the previous line then receives no further fixes. Within the supported line, fixes ship to npm as patch releases (1.11.0 → 1.11.1), so staying on latest always keeps you supported.
The table names the supported line as major.minor.x, so it stays accurate across patch releases:
| Version | Supported |
|---|---|
| 1.16.x | ✅ |
| 1.15.x | ❌ |
| 1.14.x | ❌ |
| 1.13.x | ❌ |
| 1.12.x | ❌ |
| < 1.12 | ❌ |
This table is maintained by hand: the release workflow bumps package.json and CHANGELOG.md automatically, so a feat: (minor) or breaking (major) change must update it in the same pull request (see AGENTS.md).
Please do not report security vulnerabilities through public GitHub issues, pull requests, or public discussions.
Please submit security reports privately through GitHub Private Vulnerability Reporting:
👉 Submit a Vulnerability Report
If the private reporting form is unavailable, please open a public GitHub issue titled Security contact request with no vulnerability details, and the maintainer will arrange a private channel.
Security issues in pi-mcp-extension's core logic, configuration handling, authentication, process lifecycle, and release pipelines are in scope. Examples include:
- OAuth token & credential leaks: Access tokens, refresh tokens, client secrets, authorization codes, or PKCE verifiers exposed in logs, error messages, terminal output, or UI notifications.
- Cross-origin token reuse: Failure to enforce origin binding on stored OAuth state files (
state.serverUrl !== config.url), or stored refresh tokens / client credentials being sent to an authorization server other than the one they are bound to (issuer). - Project trust boundary bypass: Loading or executing untrusted project-level configuration (
<cwd>/.pi/mcp.json) whenctx.isProjectTrusted()isfalse. - OAuth callback attacks: CSRF vulnerabilities, bypass of callback
stateparameter validation on success or error redirects, or listening on non-loopback interfaces. - Command / shell injection: Unsanitized parameters or authorization URLs passed to OS openers or shell processes.
- Terminal escape sequence injection: Failure to sanitize raw ANSI/VT control sequences from MCP server
stderror output before display, including resource names, URIs, descriptions, andresources/readcontent surfaced by/mcp:resources. - Insecure file permissions: Writing sensitive credential caches or lockfiles (
<hash>.json,<hash>.json.lock) with permissions looser than0o600inside0o700directories. - Supply-chain security: Vulnerabilities in this package's release workflows, dependency chain, or published npm packages.
The following are outside the threat model of this extension:
- Third-party MCP servers: Vulnerabilities or malicious behavior within external MCP servers themselves (report to the server maintainers).
- Upstream Pi coding agent: Vulnerabilities in Pi's core runtime or extensions host (report upstream to Pi).
- Compromised local environment: Attacks requiring an adversary who already has the ability to run code under your OS user account or modify your global configuration (
~/.pi/agent/mcp.json). - Deliberately trusted malicious projects: Attacks where the user explicitly trusts an untrusted workspace containing malicious project files.
- Local denial of service: Killing local processes or filling local disk when the attacker already has local access.
To help triage and resolve the issue quickly, please include:
- Extension version: The version of
pi-mcp-extensionin use (see Checking Your Version). - Pi version: The version of the Pi coding agent (
pi --version). - Environment details: Node.js version (
node --version), operating system, and architecture. - Transport: The transport type involved (
stdio,streamable-http, orsse). - Configuration snippet: Relevant excerpts from
mcp.jsonwith all secrets, tokens, keys, and authorization headers redacted. - Reproduction steps: A clear, deterministic set of steps or minimal reproduction script.
- Impact: A description of the attack scenario, security impact, and prerequisites.
This is an open-source project maintained by an individual maintainer. Vulnerability reports are handled on a best-effort basis:
- Acknowledgment: Within 7 business days of receipt.
- Status update: An assessment and intended fix within 30 days.
- Coordinated disclosure: We follow coordinated vulnerability disclosure. Fixes will be prepared in private GitHub Security Advisories and released simultaneously with a public advisory and patch release.
- Credit: Reporters will be acknowledged and credited in the GitHub Security Advisory and CHANGELOG (unless they prefer to remain anonymous).
Security fixes ship as automated patch releases via npm. Users should keep the extension up to date.
Pi installs packages into ~/.pi/agent/npm/ by default (or .pi/npm/ for project-local installs; if overridden, $PI_CODING_AGENT_DIR/npm/).
To check the currently installed version:
- Using npm against Pi's package directory:
(replace prefix with
npm --prefix ~/.pi/agent/npm ls pi-mcp-extension.pi/npmfor project-local installs) - Reading the package manifest directly:
(or inspect
node -p "require(require('node:os').homedir() + '/.pi/agent/npm/node_modules/pi-mcp-extension/package.json').version"~/.pi/agent/npm/node_modules/pi-mcp-extension/package.json)
To update to the latest release:
pi update npm:pi-mcp-extensionAlternatively, reinstall the latest release:
pi install npm:pi-mcp-extension@latest