Menu

We Swapped Our MCP Server's Base Image and Went From 36 Reported Vulnerabilities to Zero
📰

We Swapped Our MCP Server's Base Image and Went From 36 Reported Vulnerabilities to Zero

#hackernoon#technology#docker#node#shell
Long article (1060 words) — no AI summary yet.
Reading 0:00
15s threshold

We run a small internal tool a custom MCP server, the kind of thing more teams are now standing up to give AI agents access to internal systems like GitHub or Slack. It runs as a container, same as everything else. We hadn’t scrutinized its base image the way we would a customer-facing service, mostly because it never occurred to us that it needed the same level of attention. So we migrated it from a standard base image to a hardened one and measured what actually changed, rather than assuming the usual advice about “minimal images” applied here the way it does everywhere else.

How we measured it

Both builds used the same application source and declared dependencies ( package.json , src/ ); the runtime base changed from Debian-based Node ( node:24-trixie-slim ) to Alpine-based Docker Hardened Images ( dhi.io/node:24-alpine3.23 ), built via a multi-stage Dockerfile with a -dev variant for the build stage.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.