T08 · Insecure Dependencies
- Location
reference/setup-postgres-mcp/setup-postgres-mcp.md:7- Finding
Unpinned Third-Party Package and Mutable Container Image
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Pin the container by immutable digest rather than `latest`: ```text ghcr.io/crystaldba/postgres-mcp@sha256: ``` 3. Document the authoritative package repository, source repository, and container registry so users can detect similarly named or typosquatted packages. 4. Verify release signatures, image provenance, or published checksums before installation where supported. 5. Use an automated dependency-update process that requires review and testing before changing the pinned package version or image digest. 6. Run the MCP server with a dedicated least-privilege database role. Enable read-only mode unless mutation is explicitly required. 7. Restrict the local process or container using operating-system permissions, container isolation, resource limits, and a non-root runtime identity. ]]>
