Urgent.News

What's breaking now, across hundreds of outlets.

Tech

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

MCP servers carry real credentials but rarely get scanned. Moving one to Docker Hardened Images removed 244 packages and all 36 reported vulnerabilities.

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

A custom MCP server, used for giving AI agents access to internal systems, had 36 reported vulnerabilities when running on a standard base image. The team migrated it to a hardened base image and measured the impact. Both the original and hardened images used the same application source and dependencies, with the runtime base changing from Debian-based Node to Alpine-based Docker Hardened Images.

The hardened image size was 56 MB compared to 104 MB for the standard image. Docker Scout scans showed 0 vulnerabilities for the hardened image, while the standard image had 36 vulnerabilities. The hardened image removed many packages from the npm toolchain, which were not needed in the production runtime. The team advises planning a separate debugging path when using hardened runtime images.

Docker Hardened Images, distroless, Chainguard, and Wolfi are examples of image providers that offer hardened options.

Rewritten by urgent.news; may contain errors — check the original.

Source: hackernoon.com

Read the original at hackernoon.com →

Report a problem with this story

More in Tech

More from Friday 27 November →