{"id":36687887,"url":"https://github.com/goark/go-cvss","last_synced_at":"2026-01-12T11:16:27.395Z","repository":{"id":43190974,"uuid":"133291709","full_name":"goark/go-cvss","owner":"goark","description":"Common Vulnerability Scoring System (CVSS)","archived":false,"fork":false,"pushed_at":"2024-03-11T11:41:58.000Z","size":243,"stargazers_count":25,"open_issues_count":2,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-13T09:57:20.317Z","etag":null,"topics":["cvss","go","golang","golang-package"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/goark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-14T01:55:57.000Z","updated_at":"2025-02-21T13:55:53.000Z","dependencies_parsed_at":"2024-03-11T12:51:13.633Z","dependency_job_id":null,"html_url":"https://github.com/goark/go-cvss","commit_stats":{"total_commits":61,"total_committers":4,"mean_commits":15.25,"dds":0.08196721311475408,"last_synced_commit":"e90ceac4b08e812e88b01197534579136f931b79"},"previous_names":["spiegel-im-spiegel/go-cvss"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/goark/go-cvss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fgo-cvss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fgo-cvss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fgo-cvss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fgo-cvss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goark","download_url":"https://codeload.github.com/goark/go-cvss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goark%2Fgo-cvss/sbom","scorecard":{"id":432793,"data":{"date":"2025-08-11","repo":{"name":"github.com/goark/go-cvss","commit":"b4550e193f8ee7a849afd876253b08c546d87e8c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/vulns.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/vulns.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/vulns.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/vulns.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/vulns.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/goark/go-cvss/vulns.yml/master?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/lint.yml:49","Warn: goCommand not pinned by hash: .github/workflows/vulns.yml:18","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:27","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/lint.yml:9","Warn: no topLevel permission defined: .github/workflows/vulns.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T03:46:02.843Z","repository_id":43190974,"created_at":"2025-08-19T03:46:02.843Z","updated_at":"2025-08-19T03:46:02.843Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cvss","go","golang","golang-package"],"created_at":"2026-01-12T11:16:27.333Z","updated_at":"2026-01-12T11:16:27.387Z","avatar_url":"https://github.com/goark.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [go-cvss] - Common Vulnerability Scoring System (CVSS)\n\n[![check vulns](https://github.com/goark/go-cvss/workflows/vulns/badge.svg)](https://github.com/goark/go-cvss/actions)\n[![lint status](https://github.com/goark/go-cvss/workflows/lint/badge.svg)](https://github.com/goark/go-cvss/actions)\n[![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/goark/go-cvss/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/goark/go-cvss.svg)](https://github.com/goark/go-cvss/releases/latest)\n\nImporting CVSS vector and scoring.\n\n- Supports CVSS v2, v3.0 and v3.1\n- Exporting CVSS information with template string\n\n**Migrated repository to [github.com/goark/go-cvss][go-cvss]**\n\n## Sample Code\n\n### Base Metrics\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    \"github.com/goark/go-cvss/v3/metric\"\n)\n\nfunc main() {\n    bm, err := metric.NewBase().Decode(\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H\") //CVE-2020-1472: ZeroLogon\n    if err != nil {\n        fmt.Fprintln(os.Stderr, err)\n        return\n    }\n    fmt.Printf(\"Severity: %v (%v)\\n\", bm.Severity(), bm.Score())\n    // Output:\n    // Severity: Critical (10)\n}\n```\n\n### Temporal Metrics\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    \"github.com/goark/go-cvss/v3/metric\"\n)\n\nfunc main() {\n    tm, err := metric.NewTemporal().Decode(\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H/E:F/RL:W/RC:R\") //CVE-2020-1472: ZeroLogon\n    if err != nil {\n        fmt.Fprintln(os.Stderr, err)\n        return\n    }\n    fmt.Printf(\"Base Severity: %v (%v)\\n\", tm.BaseMetrics().Severity(), tm.BaseMetrics().Score())\n    fmt.Printf(\"Temporal Severity: %v (%v)\\n\", tm.Severity(), tm.Score())\n    // Output:\n    // Base Severity: Critical (10)\n    // Temporal Severity: Critical (9.1)\n}\n```\n\n### Environmental Metrics\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/goark/go-cvss/v3/metric\"\n\t\"os\"\n)\n\nfunc main() {\n\tem, err := metric.NewEnvironmental().Decode(\"CVSS:3.1/AV:P/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H/E:F/RL:U/RC:C/CR:M/IR:H/AR:M/MAV:L/MAC:H/MPR:L/MUI:R/MS:U/MC:L/MI:H/MA:L\") //Random CVSS Vector\n\tif err != nil {\n\t\tfmt.Fprintln(os.Stderr, err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Base Severity: %v (%v)\\n\", em.BaseMetrics().Severity(), em.BaseMetrics().Score())\n\tfmt.Printf(\"Temporal Severity: %v (%v)\\n\", em.TemporalMetrics().Severity(), em.TemporalMetrics().Score())\n\tfmt.Printf(\"Environmental Severity: %v (%v)\\n\", em.Severity(), em.Score())\n\t// Output:\n\t// Base Severity: Critical (6.1)\n\t// Temporal Severity: Critical (6)\n\t// Environmental Severity: Critical (6.5)\n}\n```\n\n### CVSSv2 Base Metrics\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/goark/go-cvss/v2/metric\"\n)\n\nfunc main() {\n\tbm, err := metric.NewBase().Decode(\"AV:N/AC:L/Au:N/C:N/I:N/A:C\") //CVE-2002-0392\n\tif err != nil {\n\t\tfmt.Fprintln(os.Stderr, err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Severity: %v (%v)\\n\", bm.Severity(), bm.Score())\n\t// Output:\n\t// Severity: Severity: High (7.8)\n}\n```\n\n### CVSSv2 Temporal Metrics\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/goark/go-cvss/v2/metric\"\n)\n\nfunc main() {\n\ttm, err := metric.NewTemporal().Decode(\"AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C\") //CVE-2002-0392\n\tif err != nil {\n\t\tfmt.Fprintln(os.Stderr, err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Severity (Base): %v (%v)\\n\", tm.Base.Severity(), tm.Base.Score())\n\tfmt.Printf(\"Severity (Temporal): %v (%v)\\n\", tm.Severity(), tm.Score())\n\t// Output:\n\t// Severity (Base): High (7.8)\n\t// Severity (Temporal): Medium (6.4)\n}\n```\n\n### CVSSv2 Environmental Metrics\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/goark/go-cvss/v2/metric\"\n)\n\nfunc main() {\n\ttm, err := metric.NewEnvironmental().Decode(\"AV:N/AC:L/Au:N/C:N/I:N/A:C/E:F/RL:OF/RC:C/CDP:H/TD:H/CR:M/IR:M/AR:H\") //CVE-2002-0392\n\tif err != nil {\n\t\tfmt.Fprintln(os.Stderr, err)\n\t\treturn\n\t}\n\tfmt.Printf(\"Severity (Base): %v (%v)\\n\", tm.Base.Severity(), tm.Base.Score())\n\tfmt.Printf(\"Severity (Temporal): %v (%v)\\n\", tm.Temporal.Severity(), tm.Temporal.Score())\n\tfmt.Printf(\"Severity (Environmental): %v (%v)\\n\", tm.Severity(), tm.Score())\n\t// Output:\n\t// Severity (Base): High (7.8)\n\t// Severity (Temporal): Medium (6.4)\n\t// Severity (Environmental): High (9.2)\n}\n```\n\n### Reporting with template (CVSSv3 only)\n\nref: [sample.go](https://github.com/goark/go-cvss/blob/master/sample/sample.go)\n\n## Reference\n\n- [CVSS v2 Complete Documentation](https://www.first.org/cvss/v2/guide)\n- [CVSS v3.0 Specification Document](https://www.first.org/cvss/v3.0/specification-document)\n- [CVSS v3.1 Specification Document](https://www.first.org/cvss/v3.1/specification-document)\n\n[go-cvss]: https://github.com/goark/go-cvss\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Fgo-cvss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoark%2Fgo-cvss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoark%2Fgo-cvss/lists"}