From 20873438cad82101c7c2814eb4204e002927de30 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 7 Nov 2026 06:55:31 +0000 Subject: [PATCH] docs: recommended upgrade version for vulnerable packages (ja/en) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014LfiSCFSWHjCZgh4VjvQ48 --- docs/en/guides/packages.mdx | 2 +- docs/en/guides/vulnerabilities.mdx | 15 +++++++++++++-- docs/guides/packages.mdx | 2 +- docs/guides/vulnerabilities.mdx | 17 ++++++++++++++--- 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/docs/en/guides/packages.mdx b/docs/en/guides/packages.mdx index 86bc9f4..0bc482b 100644 --- a/docs/en/guides/packages.mdx +++ b/docs/en/guides/packages.mdx @@ -61,7 +61,7 @@ Supported ecosystems are npm, PyPI, Pub, Maven, Go, crates.io, RubyGems, Packagi ## The package list -The list shows each package's ecosystem, name, version, source (manual or the file it came from), last scan time and number of open vulnerabilities. Remove a package with the trash icon. +The list shows each package's ecosystem, name, version, source (manual or the file it came from), last scan time, number of open vulnerabilities and [recommended upgrade](/guides/vulnerabilities#recommended-upgrade). Remove a package with the trash icon. ## When checks run diff --git a/docs/en/guides/vulnerabilities.mdx b/docs/en/guides/vulnerabilities.mdx index 80150a2..a438b27 100644 --- a/docs/en/guides/vulnerabilities.mdx +++ b/docs/en/guides/vulnerabilities.mdx @@ -15,8 +15,8 @@ Vectana looks up vulnerabilities affecting your registered versions in [OSV](htt | --- | --- | | Severity | CRITICAL / HIGH / MEDIUM / LOW / UNKNOWN, plus the CVSS score when known | | Project | The affected project | -| Package | Ecosystem, package name and version | -| Fixed in | The smallest fixed version newer than yours. Upgrading to it resolves the issue | +| Package | Ecosystem, package name and version, with the package's [recommended upgrade](#recommended-upgrade) below | +| Fixed in | The smallest fixed version newer than yours. Upgrading to it resolves this vulnerability | | Vulnerability | The advisory ID (GHSA, PYSEC…), aliases such as the CVE, and a summary. Click the ID to open it on osv.dev | | Detected | When Vectana first found it | | Status | How you're handling it | @@ -39,6 +39,17 @@ Change each finding's status to record what you've done. Acknowledged and ignored findings aren't counted as open on the dashboard and aren't notified. Members and above can change the status. +## Recommended upgrade + +When a package has several vulnerabilities, Vectana shows the version that fixes them all at once as the recommended upgrade. It appears under the package name in the vulnerability list, and in the "Upgrade to" column of the project's Packages tab. + +- Open and acknowledged vulnerabilities count. Ignored ones do not +- The recommendation is the newest of their fixed versions, which is the lowest version that fixes all of them +- A patch / minor / major label shows how big the jump is. Major upgrades often include breaking changes, so check the release notes. Below 1.0 (0.x), a minor bump often breaks compatibility too, so it is labeled major +- When some vulnerabilities have no fix yet, "+N without a fix" is added. When none of them has a fix, it shows "No fix yet" + +The recommendation is a guide computed from the advisories' fixed versions. After upgrading, import the lockfile again and check that the vulnerabilities are gone. + ## Resolve it Upgrade the package to the fixed version or later, then [import the new lockfile](/guides/packages). When the old version is no longer registered, its findings go away. diff --git a/docs/guides/packages.mdx b/docs/guides/packages.mdx index 4026e65..3d81464 100644 --- a/docs/guides/packages.mdx +++ b/docs/guides/packages.mdx @@ -61,7 +61,7 @@ OS のパッケージ(`deb` `rpm` `apk` など)や purl のないコンポ ## パッケージの一覧 -一覧では、エコシステム・パッケージ名・バージョン・登録元(手動またはファイル名)・最終スキャン日時・未対応の脆弱性の件数を確認できます。不要になったパッケージは右端のゴミ箱で削除できます。 +一覧では、エコシステム・パッケージ名・バージョン・登録元(手動またはファイル名)・最終スキャン日時・未対応の脆弱性の件数・[推奨バージョン](/guides/vulnerabilities#推奨バージョン)を確認できます。不要になったパッケージは右端のゴミ箱で削除できます。 ## チェックのタイミング diff --git a/docs/guides/vulnerabilities.mdx b/docs/guides/vulnerabilities.mdx index 6367a23..5eabf5b 100644 --- a/docs/guides/vulnerabilities.mdx +++ b/docs/guides/vulnerabilities.mdx @@ -15,8 +15,8 @@ description: 見つかった脆弱性の読み方、重大度、修正版、対 | --- | --- | | 重大度 | CRITICAL / HIGH / MEDIUM / LOW / UNKNOWN と、分かる場合は CVSS スコア | | プロジェクト | 影響を受けるプロジェクト | -| パッケージ | エコシステムとパッケージ名・バージョン | -| 修正版 | 今のバージョンより新しい修正版のうち、もっとも小さいバージョン。ここまで上げれば解消します | +| パッケージ | エコシステムとパッケージ名・バージョン。その下に、パッケージの[推奨バージョン](#推奨バージョン)が出ます | +| 修正版 | 今のバージョンより新しい修正版のうち、もっとも小さいバージョン。ここまで上げればこの脆弱性は解消します | | 脆弱性 | 脆弱性の ID(GHSA・PYSEC など)と CVE などの別名、概要。ID を押すと osv.dev の詳細が開きます | | 検知日時 | Vectana が最初に見つけた日時 | | 状態 | 対応状況 | @@ -39,6 +39,17 @@ description: 見つかった脆弱性の読み方、重大度、修正版、対 「確認済み」と「無視」にしたものは、ダッシュボードの未対応の件数に含まれず、通知もされません。状態を変えられるのは、プロジェクトのメンバー以上のロールを持つ人です。 +## 推奨バージョン + +1つのパッケージに脆弱性が複数あるとき、どこまで上げればまとめて直るかを「推奨バージョン」として表示します。脆弱性の一覧ではパッケージ名の下に、プロジェクトの「パッケージ」タブでは「推奨バージョン」の列に出ます。 + +- 未対応と確認済みの脆弱性が対象です。無視したものは含めません +- それぞれの脆弱性の修正版のうち、いちばん新しいものを推奨します。これがすべてを直す最小のバージョンです +- 今のバージョンからの上がり幅を patch / minor / major で示します。major は互換性のない変更を含むことが多いので、リリースノートを確認してください。1.0 未満(0.x)のパッケージは minor の上げでも互換性が壊れることが多いため、major として扱います +- 修正版がまだ出ていない脆弱性があると「ほか修正版なし N 件」と添えます。どれにも修正版がない場合は「修正版なし」と表示します + +推奨バージョンはアドバイザリの修正版から計算した目安です。上げたあとは lockfile を取り込み直して、脆弱性が消えたことを確認してください。 + ## 解消する -脆弱性を解消するには、パッケージを修正版以上に上げてから、新しい lockfile を [取り込み直します](/guides/packages)。古いバージョンが登録から消えると、その検知結果も消えます。 +脆弱性を解消するには、パッケージを修正版(まとめて直すなら推奨バージョン)以上に上げてから、新しい lockfile を [取り込み直します](/guides/packages)。古いバージョンが登録から消えると、その検知結果も消えます。