Vulnera Advisors: Open Source Vulnerability Intelligence
A Rust library for aggregating and querying security vulnerability advisories from multiple sources. Designed for building vulnerability scanners, SCA tools, and security dashboards.
About Vulnera
This project is an open source contribution from the Vulnera organization, dedicated to improving security tooling and vulnerability management. Vulnera provides security-focused libraries and tools to help developers build more secure applications.
Features
-
Multi-Source Aggregation: Fetch advisories from:
- GitHub Security Advisories (GHSA) via GraphQL API
- NIST National Vulnerability Database (NVD) via REST API
- Open Source Vulnerabilities (OSV) via bulk downloads
- CISA Known Exploited Vulnerabilities (KEV)
- OSS Index for on-demand PURL queries
-
Enrichment Data:
- EPSS (Exploit Prediction Scoring System) scores
- KEV status for identifying actively exploited vulnerabilities
-
Unified Data Model: All sources normalized to OSV-compatible Advisory format
-
Efficient Storage: Redis/DragonflyDB backend with zstd compression
-
Version Matching: SemVer-aware vulnerability matching
-
Caching: Automatic caching for OSS Index queries with configurable TTL
Installation
Add to your Cargo.toml:
[]
= "0.1.0"
Quick Start
use ;
async
Builder Pattern
For more control over configuration:
use VulnerabilityManager;
let manager = builder
.redis_url
.with_osv_defaults // npm, PyPI, Maven, crates.io, Go, etc.
.with_nvd
.with_ghsa
.with_ossindex // Uses env vars for auth
.build?;
OSS Index Queries
Query vulnerabilities directly by Package URL (PURL):
use ;
// Build PURLs for packages
let purls = vec!;
// Query with automatic caching
let advisories = manager.query_ossindex.await?;
Filtering Options
Filter vulnerabilities by severity, EPSS score, or KEV status:
use ;
// Only high/critical severity
let options = high_severity;
// Only actively exploited (KEV)
let options = exploited_only;
// Custom filters
let options = MatchOptions ;
let vulns = manager.matches_with_options.await?;
Environment Variables
| Variable | Description | Required |
|---|---|---|
REDIS_URL |
Redis/DragonflyDB connection URL | Yes |
VULNERA__APIS__GHSA__TOKEN |
GitHub token for GHSA API | For GHSA |
VULNERA__APIS__NVD__API_KEY |
NVD API key (higher rate limits) | Optional |
OSSINDEX_USER |
OSS Index username | For OSS Index |
OSSINDEX_TOKEN |
OSS Index API token | For OSS Index |
VULNERA__STORE__TTL_SECONDS |
Advisory cache TTL | Optional |
Supported Ecosystems
The library supports Package URLs (PURLs) for these ecosystems:
npm- Node.js packagespypi- Python packagescargo/crates.io- Rust cratesmaven- Java/Kotlin packagesnuget- .NET packagesgem- Ruby gemsgolang/go- Go modulescomposer/packagist- PHP packagespub- Dart/Flutter packageshex- Erlang/Elixir packagescocoapods- iOS/macOS packagesswift- Swift packages
Architecture
┌─────────────────────────────────────────────────────────────┐
│ VulnerabilityManager │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌────────┐│
│ │ GHSA │ │ NVD │ │ OSV │ │ KEV │ │ EPSS ││
│ │ Source │ │ Source │ │ Source │ │ Source │ │ Source ││
│ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ └───┬────┘│
│ │ │ │ │ │ │
│ └───────────┴─────┬─────┴───────────┴──────────┘ │
│ │ │
│ ┌────▼────┐ │
│ │Aggregator│ │
│ └────┬────┘ │
│ │ │
│ ┌────▼────┐ │
│ │ Store │ ◄── Redis/DragonflyDB │
│ └─────────┘ + zstd compression │
└─────────────────────────────────────────────────────────────┘
Data Model
Advisories follow the OSV Schema:
Performance
- Compressed Storage: zstd compression reduces Redis memory usage by ~70%
- Batch Operations: Efficient bulk inserts and queries
- Incremental Sync: Only fetches new/modified advisories after initial sync
- Parallel Fetching: Sources are synced concurrently
- Query Caching: OSS Index results cached with configurable TTL
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Contributing
This is an open source project from the Vulnera organization. We welcome contributions from the security community!
How to Contribute
- Fork the repository
- Create a feature branch
- Submit a Pull Request with detailed description
- Follow the existing code style and patterns
- Add tests for new functionality
Security Contributions
We particularly welcome contributions that:
- Improve security coverage
- Add new vulnerability sources
- Enhance matching algorithms
- Optimize performance for large-scale analysis
About Vulnera
Vulnera is an organization dedicated to providing open source security tools and libraries that help developers build more secure applications. Our projects focus on making security accessible and actionable through practical, well-maintained tools.
Our mission is to democratize security by providing high-quality, open source tools that can be easily integrated into development workflows.