gitpod-io/gitpod/cve-mitigation
Claude Code and agent skill by gitpod-io/gitpod
- community
Checking that the SKILL.md file is still in the repository.
Scan, triage, and remediate CVEs in the Gitpod monorepo. Use when asked to fix vulnerabilities, update dependencies for security, respond to CVE scan failures, or validate that dependency updates resolve known CVEs. Triggers on "fix CVE", "vulnerability scan", "security update", "dependency CVE", "grype scan", "leeway sbom", "CVE remediation", "update vulnerable dependency", "daily scan failure", "critical vulnerability".
Install
npx vskill@latest install gitpod-io/gitpod/cve-mitigationSKILL.md
The same SKILL.md was published earlier as gitpod-io/gitpod/cve-mitigation.
CVE Mitigation
Fix and validate CVE findings in the Gitpod monorepo. This repo has ~80 Go modules under components/, dev/, install/, and test/, plus TypeScript/Node packages.
Scanning
Fast local scan (grype)
Install grype if missing, then scan individual modules or the whole repo:
Use --fail-on critical or --fail-on high to get a non-zero exit code.
CI scan (leeway sbom)
CI uses leeway sbom export + leeway sbom scan against components:needs-vuln-scan. Leeway embeds both syft (SBOM generation) and grype (vulnerability matching) internally. The CI scan is slow (requires full build cache) and runs on every push to main and on PRs.
The daily scheduled run (build.yml, cron 0 0 * * *) checks vulnerability-stats.json for critical counts and sends Slack alerts via notify-scheduled-failure.
Read references/ci-scanning.md for the full CI pipeline details.
Trivy image scanning
A separate Trivy-based scan (scripts/trivy/trivy-scan-images.sh) scans built Docker images. It uses scripts/trivy/trivyignore.yaml for suppressions. This is distinct from the Go dependency scanning.
Triage
When a CVE is reported:
- Check severity and CVSS score. Focus on Critical (CVSS ≥ 9.0) and High (CVSS ≥ 7.0) first.
- Check if a fix exists. Use
--only-fixedwith grype. If no fix exists, document and defer. - Check exploitability in context. Not all CVEs are exploitable in Gitpod's usage. If a CVE
is a false positive or not exploitable, add it to WORKSPACE.yaml under sbom.ignoreVulnerabilities with a vulnerability ID and a reason explaining why.
- Check for breaking API changes. Some upgrades (e.g.,
runcv1.1.x → v1.2.x) change
exported APIs. These require code migration, not just go get.
BuildKit fork updates
The image-builder-bob component depends on Gitpod's BuildKit fork. Follow the fork maintenance procedure to update it with upstream while preserving Gitpod's customizations.
Container image digest updates
When updating Dockerfile image pins, prefer the tag's image index digest over an individual platform's image manifest digest, especially when the index also references provenance attestations. Preserve those references when available; use a platform-specific digest only when the task requires it or no index exists.
Resolve the tag without selecting a platform (for example, crane digest <image>:<tag>) and inspect its manifest to confirm the digest identifies an image index or image manifest. Never use an image configuration or layer digest in a FROM reference. Compare index entries before treating a digest change as an update: switching from an index to its existing child image does not provide a newer build.
Remediation (Go dependencies)
Standard update flow
For each affected module:
Multi-module coordination
This repo has many Go modules that share dependencies via replace directives in go.mod. When updating a dependency:
- Start with leaf modules (APIs, protocol packages) and work up to service modules.
- Check replace directives. Many modules use
replaceto point to local paths:
`` replace github.com/gitpod-io/gitpod/common-go => ../common-go // leeway ` If common-go` bumps a dependency, all modules that replace-reference it will transitively pick up the new version.
- Update all modules that directly depend on the vulnerable package. Use:
``bash grep -rl "google.golang.org/grpc" components/*/go.mod | sort ``
- Don't forget `dev/` and `test/` modules. CI builds these too. They often lag behind.
- Run `go mod tidy` in every updated module. Missing this causes CI failures.
OpenTelemetry replace directives
Some modules (notably image-builder-bob) use replace directives to pin OpenTelemetry versions. When upgrading grpc, the OTel SDK version requirements may change. Update the replace directives to match:
Deprecated package migration
When a package is deprecated and replaced (e.g., dgrijalva/jwt-go → golang-jwt/jwt/v5):
- Update
go.mod: remove old dependency, add new one. - Update import paths in
.gofiles. - Verify API compatibility — most maintained forks keep the same API surface.
- Run
go build ./...andgo test ./...to confirm.
Packages with breaking changes
Some upgrades cannot be done with a simple version bump. Document these in the PR under "Not addressed (requires follow-up)" with the specific breaking change. Example: opencontainers/runc v1.1.x → v1.2.x made libcontainer/cgroups/ebpf functions unexported.
Suppressing false positives
Two suppression mechanisms exist:
WORKSPACE.yaml (leeway sbom scan)
Add entries under sbom.ignoreVulnerabilities in WORKSPACE.yaml:
Trivy ignore (image scanning)
Add entries to scripts/trivy/trivyignore.yaml:
Validation
After making changes, validate locally before pushing:
PR conventions
- Title: "Fix critical CVEs from daily vulnerability scan" or similar.
- Body: Include a table of updated packages with From/To versions and CVE IDs.
- Tag with
team: staff-engineersandteam: team-enterprise. - Reference the Linear issue (e.g., "Fixes: CLC-XXXX").
- List any CVEs that could NOT be addressed and why under "Not addressed (requires follow-up)".
- Co-author:
Co-authored-by: Ona <no-reply@ona.com>
Reference files
references/ci-scanning.md— CI pipeline details for vulnerability scanning.references/go-modules.md— List of all Go modules and their scan-relevant groupings.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcve-mitigation/SKILL.md
Popularity
- Repository stars
- 13,754
- Repository forks
- 1,397
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gitpod-io/gitpod/cve-mitigation)