cve-fix

Automate CVE remediation from Jira tickets with dependency fixes and PR creation.

6|16|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/flightctl/ai-workflows --skill cve-fix-flightctl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cve-fix
Source: https://github.com/flightctl/ai-workflows/tree/main/cve-fix
Command: npx skills add https://github.com/flightctl/ai-workflows --skill cve-fix-flightctl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, jira, python3, govulncheck, npm, pip-audit, skopeo, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the time-consuming process of fixing a vulnerability described in a Jira ticket, including confirming it exists, applying safe dependency upgrades, validating the result, and creating reviewable pull requests.

Core Features & Use Cases

  • Jira-driven CVE remediation: Pulls CVE context from Jira (or uses provided CVE details) and uses it to guide a targeted fix strategy.
  • Multi-strategy dependency patching: Attempts fixes from lowest-risk to highest-risk options (direct update, transitive update, overrides/pins, then optional major bumps).
  • Verification and guardrails: Scans to confirm the CVE is gone (including Go binary scanning), runs tests, and produces artifacts for auditing and PR justification.
  • PR + backport + closure workflow: Creates a draft PR with logged strategy rationale, supports backporting to release branches, and updates Jira ticket status (including VEX when the CVE is not present).

Quick Start

Tell the AI: Execute the CVE fix workflow for Jira ticket key EDM-1234 by running start, scan, patch, validate, and create a draft PR with justification.

Frequently Asked Questions about cve-fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate CVE remediation from a Jira ticket?

Automating CVE remediation from a Jira ticket requires pulling vulnerability context, scanning the repository to confirm exploitability, and applying targeted dependency updates. It ultimately generates a draft PR with strategy rationale and updates the Jira status.

What is the safest way to apply dependency updates for vulnerability patches?

Applying dependency updates safely requires a multi-strategy approach, attempting lowest-risk options first. It tries direct updates, then transitive updates, overrides, and optional major bumps, ensuring deterministic phase execution with safety guardrails and verification scans.

Does automated CVE patching work with Go, Node.js, and Python projects?

Automated CVE patching supports Go, Node.js, Python, Java, Rust, and Ruby ecosystems. It applies ecosystem-specific dependency fixes and uses tools like govulncheck, npm, and pip-audit to verify vulnerability remediation.

Can I backport dependency fixes to release branches after creating a pull request?

Backporting dependency fixes to release branches is supported after creating an initial draft PR. The workflow generates reviewable PRs with logged strategy rationale and can propagate validated dependency updates to designated release branches.

What happens if a repository scan determines a CVE is not actually exploitable?

If a repository scan confirms a CVE is not exploitable, the workflow generates VEX justification and updates the Jira ticket status. This ensures accurate vulnerability tracking and closes the remediation loop without unnecessary dependency updates.

Do I need to install specific scanning tools to validate dependency updates?

Validating dependency updates requires specific scanning tools including govulncheck, npm, pip-audit, and skopeo. These dependencies confirm the CVE is gone, verify Go binary scanning, and produce artifacts for auditing and PR justification.