Automated reporter notifications for CVE assignment and duplicate classification
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
調査の方向性
Start by reading the existing Gmail reply handlers and MailSender.sendReply() flow, then trace how issue label events are handled. Implement the two notification handlers and shared service described in the issue, including label order handling and comment marker checks. Done means both notifications follow the stated guards, templates, and idempotency rules, with missing CVE assessment data producing a warning comment.
索引モデルが issue の本文から書いたものです。
説明
Context
The November 3 incident demonstrated that our communication with security researchers needs improvement. Serious reporters want acknowledgment that their report didn't go to /dev/null. We already auto-acknowledge incoming reports — this proposal extends that pattern to two critical lifecycle milestones: CVE assignment and duplicate classification.
Proposal
Add two automated email notifications sent to reporters via the existing Gmail pipeline (MailSender.sendReply()). Both only apply to issues with the source/email label (reports received via the mailing list). Issues filed directly on GitHub are not affected.
1. CVE Assignment Notification
When: Automatically sent when the status/cve-assigned label is added to an issue, provided:
- The issue has a
source/emaillabel (report came from the mailing list) - The issue has a
severity/*label (KEV, Critical, High, Medium, or Low) - A CVSS 3.1 vector is found in the issue comments (from the team assessment)
- The notification has not already been sent (idempotency marker:
**Reporter-Notified-CVE:**)
If severity or CVSS is missing when the CVE is assigned, the bot posts a warning comment instead of sending the email. The team adds the missing data and the notification is re-evaluated.
Email template:
Hello,
Thank you for reporting this issue and for following our responsible disclosure policy (https://www.keycloak.org/security).
Our team has completed the preliminary security assessment and confirmed the issue as <SEVERITY> with CVSS:3.1/<VECTOR>.
Our engineering team is actively working on a fix. In accordance with coordinated vulnerability disclosure practices, we ask that you keep the details confidential until the fix is released and the security advisory is published. We will keep you informed of any significant change in the timeline.
We will credit you in the security advisory and CVE record using the contact information provided in your report. If you would like to update your name, affiliation, or handle, please let us know.
Best regards,
Keycloak Security team
Example with values filled in:
Hello,
Thank you for reporting this issue and for following our responsible disclosure policy (https://www.keycloak.org/security).
Our team has completed the preliminary security assessment and confirmed the issue as HIGH with CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N.
Our engineering team is actively working on a fix. In accordance with coordinated vulnerability disclosure practices, we ask that you keep the details confidential until the fix is released and the security advisory is published. We will keep you informed of any significant change in the timeline.
We will credit you in the security advisory and CVE record using the contact information provided in your report. If you would like to update your name, affiliation, or handle, please let us know.
Best regards,
Keycloak Security team
Confirmation comment posted on the issue after email is sent:
**Reporter-Notified-CVE:** CVE-2026-12345
Reporter notified of CVE assignment (severity: High).
Note: Remediation targets by severity are an internal matter and are intentionally not communicated to reporters. If a target slips, the issue stays embargoed until a fix is released.
2. Duplicate Report Notification
When: Automatically sent when the issue reaches a state where kind/duplicate IS present AND status/triage IS NOT present. The order of label operations does not change the outcome:
| Scenario | What happens |
|---|---|
status/triage removed first, then kind/duplicate added |
Email sent when kind/duplicate is added (triage already absent) |
kind/duplicate added while status/triage present |
No email yet |
kind/duplicate added while status/triage present, then status/triage removed |
Email sent when status/triage is removed (duplicate already present) |
kind/duplicate already added, labels shuffled afterward |
No duplicate email (idempotency marker prevents re-send) |
Guards:
- The issue has a
source/emaillabel - The notification has not already been sent (idempotency marker:
**Reporter-Notified-Duplicate:**)
Email template:
Hello,
Thank you for contacting the Keycloak Security team and following our responsible disclosure policy (https://www.keycloak.org/security).
After reviewing your report with the team, this issue is a duplicate of an existing report currently being addressed.
In line with coordinated vulnerability disclosure practices, we offer co-credit for independent duplicate reports. If you would like to be added as a co-credit in the security advisory, please let us know and confirm if we should use the contact information provided in your report or any updated details.
Best regards,
Keycloak Security team
Confirmation comment posted on the issue after email is sent:
**Reporter-Notified-Duplicate:** true
Reporter notified of duplicate classification.
Idempotency
Both notifications use a marker comment pattern (following the established **Gmail-Thread-ID:** and **SecAlert-Thread-ID:** convention). Before sending, the bot checks issue comments for the relevant marker. If found, the email is not sent again, regardless of subsequent label changes.
Feedback Loop
When the bot sends an email, it posts a confirmation comment on the issue (shown above). This serves two purposes:
- Machine-readable idempotency marker for the bot
- Human-readable audit trail for maintainers — the team sees exactly when and what was communicated to the reporter
New Labels Required
| Label | Purpose |
|---|---|
kind/duplicate |
Marks an issue as a duplicate of an existing report |
severity/kev |
Known Exploited Vulnerability (CISA KEV) |
severity/critical |
Critical severity |
severity/high |
High severity |
severity/medium |
Medium severity |
severity/low |
Low severity |
Implementation
New event handlers:
CveAssignedNotificationHandler— listens to@Issue.Labeledforstatus/cve-assignedDuplicateNotificationHandler— listens to@Issue.Labeledforkind/duplicateand@Issue.Unlabeledforstatus/triage
Shared service:
ReporterNotificationService— email sending, idempotency checks, severity/CVSS extraction
All emails are sent via MailSender.sendReply(), which replies to the original reporter in the Gmail thread (the same mechanism used by @security reject and @security reply).
- 主要言語
- Java
- スター
- 10
- フォーク
- 11
- 平均マージ
- 9日 15時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
keycloak/keycloak-github-bot のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
keycloak/keycloak-github-bot#90 · コメント 3 件 · リアクション 1 件 ·
-
Remove stale issue links from backport PRs対応中かも @mabartos が 9 日前に担当しました。 オープンkind/enhancement
keycloak/keycloak-github-bot#100 · 担当者 1 名 ·
-
kind/bug status/triage
難易度 3/5 半日 初心者へのやさしさ 42/100
keycloak/keycloak-github-bot#93 · コメント 2 件 ·
-
Remind issue assignees about missing backport PRs再び着手できるかも @mabartos が 44 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンkind/enhancement status/triage
keycloak/keycloak-github-bot#91 · 担当者 1 名 ·
-
Add labels for AI/API generated issues that don't have any labels対応中かも @ahus1 が 63 日前に担当しました。 オープンkind/enhancement status/triage
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
keycloak/keycloak-github-bot の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
micronaut-projects/micronaut-core#14585 ·
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability untriaged
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
opensearch-project/cross-cluster-replication#1805 ·
メンテナーはふだん 1 日以内に返信
-
feature request needs triage
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
TeamNewPipe/NewPipe#14083 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
PCL-Community/PCL-CE#3907 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 2 日以内に返信