{"id":29480996,"url":"https://github.com/kaansk/go-euvd","last_synced_at":"2025-07-16T00:02:31.467Z","repository":{"id":303930653,"uuid":"1016915980","full_name":"kaansk/go-euvd","owner":"kaansk","description":"Comprehensive and zero dependency Go client for the ENISA EU Vulnerability Database (EUVD) API. Instantly access real-time vulnerability data, security advisories, CVSS scores, and more.","archived":false,"fork":false,"pushed_at":"2025-07-10T14:10:32.000Z","size":15,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T15:42:17.214Z","etag":null,"topics":["api-client","cvss","enisa","epss","european-union","euvd","go","golang","incident-response","open-source","oss","security","threat-intelligence","vulnerability","vulnerabilitymanagement"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaansk.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,"zenodo":null}},"created_at":"2025-07-09T18:15:51.000Z","updated_at":"2025-07-10T15:31:39.000Z","dependencies_parsed_at":"2025-07-10T15:42:21.851Z","dependency_job_id":"a0b97aeb-ce5f-4696-b637-1a26b3b06fe1","html_url":"https://github.com/kaansk/go-euvd","commit_stats":null,"previous_names":["kaansk/go-euvd"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kaansk/go-euvd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaansk%2Fgo-euvd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaansk%2Fgo-euvd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaansk%2Fgo-euvd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaansk%2Fgo-euvd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaansk","download_url":"https://codeload.github.com/kaansk/go-euvd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaansk%2Fgo-euvd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265375356,"owners_count":23755218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api-client","cvss","enisa","epss","european-union","euvd","go","golang","incident-response","open-source","oss","security","threat-intelligence","vulnerability","vulnerabilitymanagement"],"created_at":"2025-07-14T23:55:14.260Z","updated_at":"2025-07-14T23:55:15.745Z","avatar_url":"https://github.com/kaansk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-euvd\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/kaansk/go-euvd.svg)](https://pkg.go.dev/github.com/kaansk/go-euvd)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kaansk/go-euvd)](https://goreportcard.com/report/github.com/kaansk/go-euvd)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA comprehensive Go client library for the **ENISA EU Vulnerability Database (EUVD)** API, providing access to vulnerability data, security advisories, and threat intelligence.\n\n\u003e [!IMPORTANT]\n\u003e **Implementation Notes \u0026 API Behavior**\n\u003e\n\u003e - **Opinionated Data Handling:** This library takes a pragmatic approach to data returned by the remote API. For example, some fields are returned as single strings with embedded `\\n` newlines. The library automatically parses these into Go string slices, providing a more idiomatic and convenient interface for consumers.\n\u003e\n\u003e - **Remote Search API Limitations:** While this library fully implements the official EUVD API specification, it has been observed that the remote search functionality has issues. Certain query parameter combinations (e.g., using `vendor` together with `toScore` or `fromScore`) may result in some parameters being ignored or omitted by the remote service. This is a limitation of the upstream API, not the client library.\n\u003e\n\u003e In case the mentioned shortcomings are implementation related, feel free to open an issue.\n\n---\n\n## Data Source\nThe [**ENISA EU Vulnerability Database**](https://euvd.enisa.europa.eu/) serves as the European Union's central repository. Api documentation is provided via [**Official API Documentation**](https://euvd.enisa.europa.eu/apidoc). API offers:\n\n- **Real-time vulnerability data** from multiple sources\n- **Security advisories** from vendors and security organizations  \n- **CVSS scores** and exploitability metrics (EPSS)\n- **Product and vendor mappings** for affected systems\n- **Exploitation status** and timeline information\n\n## Key Features\n\n- ✅ **Complete API Coverage** - All EUVD endpoints supported\n- ⚡ **High Performance** - Optimized HTTP client with connection pooling\n- 🔧 **Flexible Configuration** - Custom timeouts, loggers, and HTTP clients\n- 🪶 **Zero External Dependencies** - Maximum portability, following standard library and best Go practices\n\n## Getting Started\n\n### Installation\n\n```bash\ngo get github.com/kaansk/go-euvd\n```\n\n### Usage\n\n#### Default Client\n```go\nclient := euvd.NewClient()\n```\n\n#### Customized Client\n```go\nlogger := slog.New(slog.NewJSONHandler(os.Stdout, \u0026slog.HandlerOptions{Level: slog.LevelInfo}))\ncustomHTTPClient := \u0026http.Client{\n    Timeout: 60 * time.Second,\n    Transport: \u0026http.Transport{\n        MaxIdleConns:    10,\n        IdleConnTimeout: 30 * time.Second,\n    },\n}\nclient = euvd.NewClient(\n    euvd.WithBaseURL(\"https://euvdservices.enisa.europa.eu/api\"),\n    euvd.WithTimeout(30*time.Second),\n    euvd.WithLogger(logger),\n    euvd.WithHTTPClient(customHTTPClient),\n)\n```\n\n#### Examples\nCheck [**example implementation**](./examples/main.go) to check usage and all endpoints.\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n    \n    \"github.com/kaansk/go-euvd\"\n)\n\nfunc main() {\n    // Default client\n    client := euvd.NewClient()\n\n    ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)\n    defer cancel()\n    \n    // Get latest critical vulnerabilities\n    vulnerabilities, err := client.GetLatestCriticalVulnerabilities(ctx)\n    if err != nil {\n        log.Fatal(err)\n    }\n    \n    fmt.Printf(\"Found %d critical vulnerabilities\\n\", len(vulnerabilities))\n    for _, vuln := range vulnerabilities {\n        fmt.Printf(\"- %s (Score: %.1f)\\n\", vuln.ID, vuln.BaseScore)\n    }\n}\n```\n\n## Devcontainer\n\nA ready-to-use [devcontainer](.devcontainer/) is provided for rapid onboarding and consistent development environments. It includes:\n- Latest stable Go (fetched from official releases)\n- All recommended Go tools (gopls, golangci-lint, goimports, staticcheck, delve)\n- Non-root user\n- Minimal, reproducible setup based on Debian/Ubuntu\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaansk%2Fgo-euvd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaansk%2Fgo-euvd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaansk%2Fgo-euvd/lists"}