Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not set attack_complexity and user_interaction from cvss 4 data #202

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "appthreat-vulnerability-db"
version = "6.2.2"
version = "6.2.3"
description = "AppThreat's vulnerability database and package search library with a built-in sqlite based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
authors = [
{name = "Team AppThreat", email = "cloud@appthreat.com"},
Expand Down
3 changes: 2 additions & 1 deletion vdb/lib/osv.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def to_vuln(cve_data):
severity = cvss4_obj.get("baseSeverity")
exploitability_score = score
attack_complexity = cvss4_obj.get("attackComplexity")
user_interaction = cvss4_obj.get("userInteraction")
# CVSS 3.1 only supports NONE or REQUIRED for userInteraction
user_interaction = "REQUIRED" if cvss4_obj.get("userInteraction", "") != "NONE" else "NONE"
if vector_string:
cvss3_obj = get_cvss3_from_vector(vector_string)
# Fallback to CVSS 3.1 only if CVSS 4 is absent
Expand Down
Loading