Skip to content

fix(security): replace mcp/memory with hardened ghcr.io/github/gh-aw-memory - #49804

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/container-image-scan-mcp-memory
Closed

fix(security): replace mcp/memory with hardened ghcr.io/github/gh-aw-memory#49804
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/container-image-scan-mcp-memory

Conversation

Copilot AI commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

mcp/memory (Docker Hub) has 118 vulnerabilities (8 Critical, 55 High) and hasn't been updated since 2025-05-02. Critical exposures include node@22.14.0, libcrypto3/libssl3@3.3.3-r0, tar@6.2.1/7.4.3, and @modelcontextprotocol/sdk@1.0.1. Since upstream shows no sign of remediation, this PR moves to an in-house hardened image on GHCR.

Changes

  • actions/setup/js/Dockerfile.memory-mcp — Builds ghcr.io/github/gh-aw-memory from node:lts-alpine (patches Node.js + Alpine OS CVEs via base image + apk upgrade), upgrades npm's bundled tar@^7.5.22 and brace-expansion@^5.0.8, then installs @modelcontextprotocol/server-memory@2026.7.4 which pulls in @modelcontextprotocol/sdk@^1.29.0 (fixing GHSA-w48q-cv73-mx4w). Sets MEMORY_FILE_PATH=/app/dist/memory.json so the existing -v /tmp/gh-aw/cache-memory:/app/dist volume mount continues to work.

  • .github/workflows/publish-memory-mcp.yml — Weekly rebuild/publish workflow for ghcr.io/github/gh-aw-memory, mirroring publish-safe-outputs-node.yml. Triggers on upstream node:lts-alpine digest change, Dockerfile change, or server-memory version bump.

  • shared/mcp/server-memory.mdcontainer: updated from mcp/memoryghcr.io/github/gh-aw-memory.

  • actions-lock.json + derived action_pins.json — Stale mcp/memory pin removed. gh-aw-memory digest will be populated by gh aw upgrade after the publish workflow runs for the first time.

  • 268 .lock.yml files recompiled to reference ghcr.io/github/gh-aw-memory.

…memory image

- Add Dockerfile.memory-mcp to build a patched image using node:lts-alpine
  (fixes CVE-2025-55130 node@22.14.0 and Alpine pkg CVEs) and installing
  @modelcontextprotocol/server-memory@2026.7.4 (fixes GHSA-w48q-cv73-mx4w
  sdk@1.0.1 and dependent npm package vulnerabilities)
- Add publish-memory-mcp.yml workflow to weekly rebuild/publish
  ghcr.io/github/gh-aw-memory, parallel to publish-safe-outputs-node.yml
- Update server-memory.md to reference ghcr.io/github/gh-aw-memory
- Remove stale mcp/memory pin from actions-lock.json and sync derived files
- Recompile all workflows so lock files reference ghcr.io/github/gh-aw-memory

Closes #49516

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update mcp/memory image to address vulnerabilities fix(security): replace mcp/memory with hardened ghcr.io/github/gh-aw-memory Aug 2, 2026
Copilot AI requested a review from pelikhan August 2, 2026 16:00
@pelikhan pelikhan closed this Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[container-image-scan] Container findings for mcp/memory

2 participants