Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

query-open-cves

БесплатноБез исполняемых скриптовНе проверен

Query and deduplicate open CVE vulnerability issues from OCPBUGS for Node team components

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

When to Use

Use this skill when Phase 1 of the node-cve:triage command needs to fetch all open CVE trackers from Jira and deduplicate them into a list of unique CVEs.

Prerequisites

  • bash, curl and jq
  • Environment variables: JIRA_API_TOKEN, and JIRA_USER (or JIRA_EMAIL) with the Jira login. Set it explicitly in containers, where the git config user.email fallback does not exist.
  • Network access to Jira instance
  • The node-team plugin (shared component and version data)

Locating shared data and the helper script

The links to node-team files below resolve in a repository checkout and on the docs site. When the plugins are installed they do not resolve, because every plugin lives in its own versioned cache directory. Get the real directory from the helper script, then read the files from there with the Read tool:

bash "${CLAUDE_PLUGIN_ROOT}/skills/report-findings/scripts/node-cve-lib.sh" refs

The helper script is node-cve-lib.sh. It is the only Bash command this plugin needs, which keeps headless runs with a strict tool allowlist working. Do not write ad-hoc curl, jira or git commands and do not chain commands. Use the Read, Grep, Glob and Write tools for file work. Shell variables do not persist between Bash tool calls, so pass values as literal arguments.

If refs fails, invoke the node-team:node skill and read references/shared/ from its base directory. If the files still cannot be found, stop with "node-team shared references not found". Never fall back to data from memory.

Implementation Steps

Step 1: Load Node team components

Read the CVE-tracked component list from the node-team shared components reference. Use the full "Jira Components (OCPBUGS)" list plus the additional CVE triage components (Driver Toolkit, Machine Config Operator).

The helper's init subcommand extracts these names into .work/node-cve/node-components.txt (the triage command runs it in Phase 0). Do not write the file by hand. search, jql and the posting-time validation in Phase 3 rebuild it from the installed node-team data before they use it, so an edit would have no effect anyway.

Default behavior (no --component flag): include ALL Node team components, and ONLY Node team components. "No flag" does not mean "no filter". It means "the full Node component list". Never construct a query that omits the component filter entirely, even when no --component value was given.

If --component was specified, only that single component is queried. The value must match an entry in the component file exactly. If it does not, the helper prints the valid component names and exits, rather than falling back to an unfiltered query.

The Jira saved filter "Node Components" (ID 91645) does not include Driver Toolkit and Machine Config Operator, so the explicit list from the shared reference is used for CVE queries to ensure completeness.

CRITICAL SAFEGUARD: This component filter is what scopes every downstream step (analysis, reporting, and above all Jira comment posting in Phase 3) to Node team trackers only. Many CVEs (especially Go stdlib or vendored-dependency vulnerabilities) have 50-200+ tracker issues across dozens of OpenShift teams. Omitting or bypassing this filter, for example by later re-querying Jira with only a CVE ID and no component constraint, is what caused the 2026-07-15 incident where Node-specific analysis was posted to ~200 non-Node trackers (HyperShift, Storage, Networking, Installer, etc.). See the report-findings "Node Team Component Safeguard" section for the posting-time re-validation this feeds into.

Step 2: Query Jira

Run the search through the helper. It builds the JQL itself, and the component in (...) clause is part of every query it sends, whether or not --component was passed:

bash "${CLAUDE_PLUGIN_ROOT}/skills/report-findings/scripts/node-cve-lib.sh" search --out .work/node-cve/trackers.tsv

Options: --component "Node / CRI-O" (single component, must be in the component file) and --days N (adds AND updated >= -Nd).

What the helper does:

  • Builds project = OCPBUGS AND type = Vulnerability AND component in ("Node / CRI-O", "Node / Kubelet", ...) AND status not in (Closed, Done, Verified). Component names contain spaces and slashes, so each one is double-quoted inside the JQL. The JQL travels in a JSON body, so no shell quoting is involved. The JQL is printed for the record.
  • Calls POST /rest/api/3/search/jql and follows nextPageToken until the last page. The jira CLI is not used for this: on Jira Cloud its --paginate <from>:<limit> offset is ignored, so it never returns more than the first 100 results, and its plain output has no component column.
  • Retries on HTTP 429 using Retry-After. On any other error it exits non-zero and writes no output
Полный SKILL.md на GitHub

Установить query-open-cves в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл query-open-cves?

Query and deduplicate open CVE vulnerability issues from OCPBUGS for Node team components

Как установить скилл query-open-cves?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл query-open-cves запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить query-open-cves с