Auto-assign severity label when a CVE is requested to secalert
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
No files or tests are named in the issue. Start by locating the comment-handling entry point for secalert requests and existing issue-label application; done means matching the stated CVSS forms, preserving existing severity labels, and applying the requested labels only for secalert comments.
Written by the indexing model from the issue text.
Description
Description
When the team requests a CVE to secalert (via a comment containing the secalert email template), the bot should parse the CVSS score from the comment and automatically assign the corresponding severity/* label to the issue. This closes the gap where issues get a CVE requested but the severity label is never applied.
Value Proposition
The team consistently includes a CVSS score in secalert request emails. Secalert almost always adopts the team's score. Despite this, severity labels are frequently forgotten, leaving triaged issues without proper severity classification. Automating this removes a manual step that is easy to forget and ensures every CVE request results in a correctly labeled issue.
Goals
- Detect when a comment contains a secalert email template (look for the
* **CVSS:**field or a CVSS:3.1 vector string) - Parse the CVSS score and severity from the vector string or the parenthetical (e.g.,
4.3 Medium,9.1 Critical) - Map the severity to the corresponding label:
- Critical (9.0-10.0) →
severity/critical - High (7.0-8.9) →
severity/high - Medium (4.0-6.9) →
severity/medium - Low (0.1-3.9) →
severity/low
- Critical (9.0-10.0) →
- Apply the label automatically to the issue
- If a
severity/*label is already present, do not override it (the existing label was set intentionally) - Automatically apply the label status/embargoed
Non-Goals
- Validating the CVSS vector or recalculating the score — trust the score as written
- Assigning severity based on non-secalert comments
- Removing or changing existing severity labels
Discussion
No response
Notes
- The secalert email template always contains a line like:
* **CVSS:** CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N (4.3 Medium) - A regex matching
CVSS:3\.1/[A-Z/:]+\s*\((\d+\.\d+)\s+(Critical|High|Medium|Low)\)should reliably extract both score and severity - The bot should also handle plain-text variants without bold formatting (e.g.,
* CVSS:without**) since the template is sometimes pasted as plain text - Consider also applying the
kind/cvelabel if not already present, since requesting a CVE to secalert implies CVE classification
Discussion
No response
Motivation
No response
Details
No response
- Dominant language
- Java
- Stars
- 10
- Forks
- 11
- Avg merge
- 9d 15h
- Merged PRs (30d)
- 1
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from keycloak/keycloak-github-bot
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
keycloak/keycloak-github-bot#90 · 3 comments · 1 reaction ·
-
Remove stale issue links from backport PRsPossibly taken @mabartos claimed this 9 days ago. Openkind/enhancement
keycloak/keycloak-github-bot#100 · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 56/100
keycloak/keycloak-github-bot#99 · 3 comments · 1 reaction ·
-
kind/bug status/triage
Difficulty 3/5 Half a day Newbie friendliness 42/100
keycloak/keycloak-github-bot#93 · 2 comments ·
-
Remind issue assignees about missing backport PRsMay be free again @mabartos claimed this 44 days ago, and no pull request is open. Openkind/enhancement status/triage
keycloak/keycloak-github-bot#91 · 1 assignee ·
All issues in keycloak/keycloak-github-bot
Similar issues
-
feature request needs triage
Difficulty 1/5 Under an hour Newbie friendliness 66/100
TeamNewPipe/NewPipe#14083 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
PCL-Community/PCL-CE#3907 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Maintainers usually reply within 2 days
-
`B3PropagatorExtractorMultipleHeaders` allocates when headers are missingPossibly taken @Eliot5566 claimed this today. OpenBug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
open-telemetry/opentelemetry-java#9065 ·
Maintainers usually reply within 3 days
-
area/dependencies area/dependencies/quarkus backport/26.6 backport/26.8 kind/cve severity/critical source/scan-dependencies status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days