Vulnerability Feeds
How AsPeekIt keeps a local mirror of the OSV advisory database (distribution and language ecosystem advisories), a complete, incrementally updated copy of the NVD CVE database, the CISA catalog of known exploited vulnerabilities (KEV), the FIRST EPSS exploitation probability scores, the public exploits of ExploitDB and Metasploit, the endoflife.date product lifecycles, the Wordfence Intelligence vulnerabilities of WordPress core, plugins and themes and the status of the Trivy DB used for container image scanning, how to point them at internal mirrors, how to import them in air-gapped installs, and the licenses of the mirrored data.
What the OSV Mirror Does
Vulnerability matching needs advisories that know the fixed version of a package in each distribution release and language ecosystem. AsPeekIt mirrors them from OSV.dev, which aggregates Ubuntu USN, Debian DSA/DLA, Alpine secdb, Red Hat RHSA, Rocky Linux RLSA, AlmaLinux ALSA, GitHub GHSA, PyPA and other databases in one format. Every advisory is stored locally with its ID, aliases (for example the CVE), upstream identifiers (the CVE of a USN, DSA or RHSA), summary, details, severity, published/modified/withdrawn dates, references and the affected packages with their version ranges.
- The task sync_osv runs every day and downloads <base>/<Ecosystem>/all.zip for each configured ecosystem
- The import is incremental per ecosystem: only records modified after the last successful sync (minus an overlap of SECURITY_OSV_OVERLAP_HOURS, default 48) are considered, and a record is rewritten only if it is newer than the stored copy (or has the same modified date but a different upstream list)
- Withdrawn advisories are kept but marked, and never used for matching
- Only ECOSYSTEM and SEMVER ranges and explicit version lists are stored; GIT commit ranges are ignored
- Malformed records are counted and skipped without failing the ecosystem; an error in one ecosystem (download, size limit, invalid archive) is recorded and the others continue
- The outcome of every ecosystem is kept in a feed status entry (osv/<Ecosystem>): last attempt, last success, last error, records imported and the sync cursor
- To re-read every record of an ecosystem, delete the scope's Feed status row in the Django admin: the next sync (or bundle import) then re-reads the whole archive and restores missing advisories, while advisories whose modified date has not changed are left as they are
Ecosystems
By default AsPeekIt mirrors Debian, Ubuntu, Alpine, Rocky Linux, AlmaLinux and Red Hat, plus the language ecosystems found in the software inventory: pypi becomes PyPI, npm stays npm, gem becomes RubyGems, composer becomes Packagist, cargo becomes crates.io and golang becomes Go. Set SECURITY_OSV_ECOSYSTEMS to a comma-separated list to choose them explicitly. Names containing /, \ or .. are rejected.
Settings
The mirror is configured with environment variables on the backend and Celery workers.
- SECURITY_OSV_BASE_URL: base URL with the OSV bucket layout (default https://storage.googleapis.com/osv-vulnerabilities); set it to an internal mirror for restricted networks (a mirror on a private address is allowed while DISCOVERY_ALLOW_PRIVATE_TARGETS is true, the default)
- SECURITY_OSV_ECOSYSTEMS: comma-separated OSV ecosystems; empty uses the default described above
- SECURITY_OSV_OVERLAP_HOURS: hours before the last cursor that are checked again (default 48)
- SECURITY_OSV_MAX_ARCHIVE_MB: maximum size of one ecosystem archive (default 1024); it applies to downloads and to the <Ecosystem>/all.zip entries of a multi-ecosystem bundle, not to a flat bundle passed directly with --ecosystem
SECURITY_OSV_BASE_URL=https://mirror.internal.example/osv-vulnerabilities
SECURITY_OSV_ECOSYSTEMS=Debian,Ubuntu,PyPI,npmAir-gapped Import
Without Internet access, copy the archives to the server and import them with the management command. It uses the same import logic as the online sync, makes no HTTP requests and updates the same feed status entries.
- Multi-ecosystem bundle: a zip whose entries are <Ecosystem>/all.zip, the same layout as the OSV bucket (prepare it with gsutil cp gs://osv-vulnerabilities/<Ecosystem>/all.zip); add --ecosystem to import only one of them
- Flat bundle: a single OSV all.zip of JSON records, imported with --ecosystem <Ecosystem>
- The command exits with an error if the bundle is missing or not a zip, if a flat bundle has no --ecosystem or no OSV records of that ecosystem, or if any ecosystem fails to import
Note: Ecosystem directories must be at the top level of the bundle (Debian/all.zip, not osv-bundle/Debian/all.zip).
# On a machine with Internet access
mkdir -p osv-bundle/Debian osv-bundle/PyPI
gsutil cp gs://osv-vulnerabilities/Debian/all.zip osv-bundle/Debian/
gsutil cp gs://osv-vulnerabilities/PyPI/all.zip osv-bundle/PyPI/
(cd osv-bundle && zip -0 -r ../osv-bundle.zip .)
# On the AsPeekIt server
python manage.py import_feed osv --bundle /path/osv-bundle.zip
python manage.py import_feed osv --bundle /path/all.zip --ecosystem PyPIDownload Safety
Archive URLs are checked by the same SSRF protection used for collectors before any request: private networks (internal mirrors) are allowed while DISCOVERY_ALLOW_PRIVATE_TARGETS is true (the default), cloud metadata and link-local addresses are always refused, and a refused URL generates no request. Redirects are not followed, the archive is streamed to a temporary file that is always removed, and downloads larger than SECURITY_OSV_MAX_ARCHIVE_MB are aborted.
- The JSON records of an archive are read in memory and never extracted to disk; only .json entries are read, each up to 16 MiB uncompressed
- Credentials in the base URL are masked in the stored error messages
- Each downloaded archive, and each <Ecosystem>/all.zip entry of a bundle, is written to the temporary directory of the backend or worker first: keep free space there of at least SECURITY_OSV_MAX_ARCHIVE_MB
NVD CVE Database
AsPeekIt keeps a complete local copy of the NVD (National Vulnerability Database) CVE catalogue, read from the NVD CVE API 2.0. The CVE matcher for software without an ecosystem (CPE matching) uses it, so historical CVEs such as CVE-2024-6387 are matched as well as recent ones. The outcome of every run is kept in the feed status entry nvd/cves.
- Bootstrap: python manage.py sync_nvd --bootstrap downloads the whole catalogue in pages of 2,000 CVEs and prints the progress after every page. The progress is saved after each page: if the command is interrupted, running it again resumes from the first page not completed. Add --restart to start again from the first page
- Incremental sync: the task sync_nvd_database runs every day and asks for the CVEs with lastModStartDate equal to the last successful sync, split into windows of at most 120 days (the NVD API limit) up to the start of the run; the cursor advances after every completed window, so a failed run resumes from the last window completed. A fixed window of days is never used
- On a new installation (no cursor yet) the daily task continues the resumable bootstrap by itself, over several runs if needed; python manage.py sync_nvd without options does the same as the daily task
- API key and rate limit: without NVD_API_KEY requests are 6 seconds apart (5 requests every 30 seconds), with a key 0.6 seconds apart. The key is sent only in the apiKey header and never appears in stored errors. Responses 403, 429, 500, 502, 503 and 504 are retried up to 3 times after 30, 60 and 120 seconds
- A lock keeps the daily sync, sync_nvd and import_feed nvd from running at the same time: a second sync_nvd or import_feed nvd exits with an error, a second daily task is skipped. Keyword syncs (sync_nvd_database with keywords) do not take the lock, and if the cache is unreachable the lock is skipped and runs proceed without it
- Stored fields: description, primary CVSS (v3.1, then v3.0, v4.0, v2) with its severity, CVSS v3.1 and v4.0 score and vector, attack vector (network, adjacent, local, physical or unknown, from the AV metric), CWE identifiers, the NVD status (vulnStatus), affected CPEs with version ranges and references. For each CVSS version the Primary metric is used, otherwise the first one
- Rejected CVEs (NVD status Rejected) are stored but never produce findings; an open finding of a CVE that becomes Rejected is resolved automatically at the next matching run
- Malformed records (invalid CVE id, non-numeric or out of range score, NUL characters) are counted and skipped without failing the page; a record is rewritten unless the stored copy has a more recent lastModified date
- Air-gapped import: python manage.py import_feed nvd --bundle <file> imports the NVD JSON 2.0 feed files (nvdcve-2.0-<year>.json.gz from https://nvd.nist.gov/vuln/data-feeds). A bundle is a .json or .json.gz file, or a .zip of such files; each JSON file may be up to SECURITY_NVD_MAX_BUNDLE_ENTRY_MB uncompressed (default 1024). The import makes no HTTP requests, uses the same parser and writer as the online sync and updates nvd/cves; the cursor becomes the most recent lastModified date imported, and from then on the daily task runs the incremental sync from that date instead of the bootstrap. For this reason the first bundle imported on an empty NVD database must contain every yearly feed (nvdcve-2.0-2002 up to the current year): after a partial import (one year, or only the modified feed) the missing years never arrive by themselves, and must be filled by importing them or by running sync_nvd --bootstrap. It fails if the file is missing, has an unsupported format or has no "vulnerabilities" list, and --ecosystem is not accepted
- SECURITY_NVD_API_URL can point at an internal mirror of the API: it passes the same SSRF checks as the OSV mirror, redirects are not followed and responses larger than SECURITY_NVD_MAX_RESPONSE_MB (default 256) are refused
# First full download (about 300,000 CVEs; hours without an API key)
python manage.py sync_nvd --bootstrap
# Resume after an interruption, or start again from the first page
python manage.py sync_nvd --bootstrap
python manage.py sync_nvd --bootstrap --restart
# Air-gapped installs
python manage.py import_feed nvd --bundle /path/nvdcve-2.0-2024.json.gz
python manage.py import_feed nvd --bundle /path/nvd-feeds.zip
# Settings
NVD_API_KEY=<key from https://nvd.nist.gov/developers/request-an-api-key>
SECURITY_NVD_API_URL=https://services.nvd.nist.gov/rest/json/cves/2.0
SECURITY_NVD_MAX_RESPONSE_MB=256
SECURITY_NVD_MAX_BUNDLE_ENTRY_MB=1024CISA KEV Catalog
AsPeekIt marks the CVEs that CISA lists in its Known Exploited Vulnerabilities (KEV) catalog, the vulnerabilities known to be exploited in real attacks. The flags are stored per CVE, also for CVEs not yet in the NVD database, and joined to findings by their CVE identifier: a finding on a KEV CVE is shown as KEV in the finding APIs as soon as the sync completes. The outcome of every run is kept in the feed status entry kev/catalog.
- Schedule: the task sync_kev runs every 6 hours (beat entry sync-kev-catalog) and downloads the whole JSON catalog from SECURITY_KEV_URL (default https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json). Sync now on the feed status page queues it right away
- What is marked: for every CVE in the catalog the date it was added, the due date, the required action and whether it is known to be used in ransomware campaigns (knownRansomwareCampaignUse equal to Known)
- Unmarking: a CVE that is no longer in the catalog is unmarked at the next sync (kev false, KEV fields cleared); the CVE row is kept. A failed download, an invalid JSON file or a catalog without any valid record changes nothing, so a broken feed never unmarks every CVE: the error is shown in the feed status
- Malformed records (cveID missing or not in the CVE-YYYY-NNNN form) are counted and skipped; a date that is not in the YYYY-MM-DD form is left empty and the CVE is still marked. When a CVE appears more than once, the last record wins
- Event cve_kev_added: when a CVE enters the catalog (or enters it again after being removed) and has active findings, AsPeekIt records an event with the CVE, the ids of its active findings and the KEV date added, due date and ransomware flag. The event is stored for later recalculations and notifications and is visible read-only in the Django admin (Security events); it has no API and sends no notification. Events recorded by the first successful sync have initial_sync true, so the first load of the catalog is not mistaken for new entries
- Finding APIs: GET /api/v1/security/findings/ and GET /api/v1/security/assets/{asset_uid}/findings/ return kev and kev_ransomware for every finding (false when the identifier is not a CVE or the CVE is not in the catalog); the detail GET /api/v1/security/findings/{id}/ also returns kev_details with date_added, due_date, ransomware and required_action, or null
- Air-gapped import: python manage.py import_feed kev --bundle <file.json> imports a copy of the catalog JSON file with the same reconciliation and events as the online sync and makes no HTTP requests. It fails if the file is missing or has no valid record, and --ecosystem is not accepted
- SECURITY_KEV_URL can point at an internal mirror: it passes the same SSRF checks as the OSV mirror, redirects are not followed and catalogs (or bundles) larger than SECURITY_KEV_MAX_MB (default 32) are refused
# Air-gapped installs (file downloaded from the CISA catalog page)
python manage.py import_feed kev --bundle /path/known_exploited_vulnerabilities.json
# Settings
SECURITY_KEV_URL=https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
SECURITY_KEV_MAX_MB=32
# KEV fields of a finding (detail)
GET /api/v1/security/findings/{id}/
# {"kev": true, "kev_ransomware": true,
# "kev_details": {"date_added": "2024-01-10", "due_date": "2024-01-31",
# "ransomware": true, "required_action": "Apply mitigations per vendor instructions."}, ...}FIRST EPSS Scores
AsPeekIt stores the Exploit Prediction Scoring System (EPSS) published every day by FIRST: for each CVE, the probability (0–1) that it is exploited in the next 30 days, its percentile among all scored CVEs and the score date of the file. The values are kept next to the KEV flags of the CVE and joined to findings by their CVE identifier, so the findings queue shows which of many high CVEs are most likely to be exploited. The outcome of every run is kept in the feed status entry epss/scores, with the score date as cursor.
- Schedule: the task sync_epss runs every day (beat entry sync-epss-scores, every 86400 seconds) and downloads the gzip CSV from SECURITY_EPSS_URL (default https://epss.empiricalsecurity.com/epss_scores-current.csv.gz). Sync now on the feed status page queues it right away
- Only CVEs in the NVD database: the file has about 250,000–400,000 rows; scores are written only for CVEs present in the local CVE database (CVEEntry), and only the rows of CVEs not in it are counted as skipped. The write runs in batches of 5,000 rows in one transaction, and never changes the KEV fields
- Clearing: every CVE written receives the score date of the file; after the write, every score whose date differs from the score date of the imported file is cleared (score, percentile and date set to null, the row is kept), which removes the scores of CVEs no longer in the file or no longer in the CVE database. The imported file is authoritative: importing an older bundle replaces newer scores with its own and clears the rest, and re-importing a file with the same score date clears nothing
- File format: comment lines starting with # (one carries score_date:YYYY-MM-DD), then a header with the columns cve, epss and percentile in any order. A file without a valid score_date, without one of those columns, corrupt or without any valid row changes nothing: the error is shown in the feed status. Rows with an invalid CVE identifier or a score or percentile that is not a number between 0 and 1 are counted as malformed and skipped; when a CVE appears more than once, the last row wins
- Download: FIRST serves the file behind a redirect, so up to 3 redirects are followed; the initial URL and every redirect target pass the same SSRF checks as the OSV mirror, and a fourth redirect, a redirect without Location or a refused target fails the sync. Files (or bundles) larger than SECURITY_EPSS_MAX_MB (default 64) are refused, and so is a file whose decompressed CSV exceeds SECURITY_EPSS_MAX_UNCOMPRESSED_MB (default 256); the file is parsed in streaming
- Finding APIs: GET /api/v1/security/findings/ and GET /api/v1/security/assets/{asset_uid}/findings/ return epss_score and epss_percentile for every finding (null when the identifier is not a CVE or the CVE has no score); the detail GET /api/v1/security/findings/{id}/ also returns epss_date
- Findings queue: the EPSS column, after Risk, shows the score as a percentage (97.3%, 0.42% below 1%, <0.01% for very small scores) or – when there is no score; hovering the value shows the percentile
- Air-gapped import: python manage.py import_feed epss --bundle <file.csv.gz> (or a plain .csv) imports a copy of the FIRST file with the same logic as the online sync and makes no HTTP requests. It fails if the file is missing or has no valid row, and --ecosystem is not accepted
# Air-gapped installs (file downloaded from https://www.first.org/epss/data_stats)
python manage.py import_feed epss --bundle /path/epss_scores-2026-11-27.csv.gz
# Settings
SECURITY_EPSS_URL=https://epss.empiricalsecurity.com/epss_scores-current.csv.gz
SECURITY_EPSS_MAX_MB=64
SECURITY_EPSS_MAX_UNCOMPRESSED_MB=256
# EPSS fields of a finding (detail)
GET /api/v1/security/findings/{id}/
# {"epss_score": 0.97, "epss_percentile": 0.999, "epss_date": "2026-11-27", ...}Public Exploits (ExploitDB, Metasploit)
AsPeekIt records, for each CVE, whether a public exploit exists: the ids of the Exploit Database (ExploitDB) exploits that reference it and the Metasploit Framework modules that reference it (weaponized). Together with the CVSS attack vector of the CVE they show how easy a CVE is to attack in practice. The values are kept next to the KEV and EPSS fields of the CVE and joined to findings by their CVE identifier. The feed has two independent scopes, each with its own URL, feed status entry (exploits/exploitdb and exploits/metasploit), license and attribution: a scope that fails never stops or changes the other one.
- Schedule: the task sync_exploits runs every day (beat entry sync-exploits, every 86400 seconds) and syncs both scopes; Sync now on the feed status page queues it right away
- ExploitDB (scope exploitdb): files_exploits.csv is downloaded from SECURITY_EXPLOITDB_URL (default https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv). The columns id and codes are read by name; codes is split on ; and every CVE code is kept, other codes (OSVDB, EDB…) are ignored. A row whose id is not a number and a code that starts with CVE- but is not a valid CVE id are counted as malformed; a row without CVE is not an error
- Metasploit (scope metasploit): modules_metadata_base.json is downloaded from SECURITY_METASPLOIT_URL (default https://raw.githubusercontent.com/rapid7/metasploit-framework/master/db/modules_metadata_base.json). Every module type counts (exploit, auxiliary, post…); the CVE- entries of its references are kept with the module fullname. A module with CVE references and a missing or invalid fullname is counted as malformed
- Every CVE of the files is written, also when it is not in the local CVE database. The ids and module names are stored sorted and unique in exploitdb_ids and metasploit_modules; has_public_exploit is true when either list is non-empty and is recomputed after every write. Each scope writes only its own field: KEV, EPSS and the other scope are never changed
- Leaving the file: a CVE no longer in the latest file of a scope gets an empty list for that scope (the row is kept), so has_public_exploit becomes false when the other scope has nothing either. A file that cannot be downloaded or parsed (missing id or codes column, JSON that is not an object of module objects, invalid JSON) or that has no valid CVE changes nothing: the error is shown in the feed status of the scope
- Download: up to 3 redirects are followed; the initial URL and every redirect target pass the same SSRF checks as the OSV mirror, and a fourth redirect or a refused target fails the scope. Files (or bundles) larger than SECURITY_EXPLOITDB_MAX_MB or SECURITY_METASPLOIT_MAX_MB (default 64 each) are refused
- Finding APIs: GET /api/v1/security/findings/ and GET /api/v1/security/assets/{asset_uid}/findings/ return attack_vector (network, adjacent, local, physical or unknown when the CVE is not in the NVD database or the finding is not a CVE), has_public_exploit and has_metasploit for every finding; the detail GET /api/v1/security/findings/{id}/ also returns exploitdb_ids and metasploit_modules (empty lists when there are none)
- Risk assessment: the detail page of a CVE finding shows a Risk assessment card with the attack vector, Public exploit (Yes/No, with links to exploit-db.com), Weaponized (Metasploit) (Yes/No, with links to the Rapid7 module database), the EPSS score and percentile (or –), In KEV and Ransomware. Up to 10 links per source are shown, then +N more; links open in a new tab
- Air-gapped import: python manage.py import_feed exploits --bundle <file> --scope exploitdb|metasploit imports a copy of one file with the same logic as the online sync and makes no HTTP requests. --scope is required for this feed (and refused by the others), and --ecosystem is not accepted
# Air-gapped installs
python manage.py import_feed exploits --bundle /path/files_exploits.csv --scope exploitdb
python manage.py import_feed exploits --bundle /path/modules_metadata_base.json --scope metasploit
# Settings
SECURITY_EXPLOITDB_URL=https://gitlab.com/exploit-database/exploitdb/-/raw/main/files_exploits.csv
SECURITY_EXPLOITDB_MAX_MB=64
SECURITY_METASPLOIT_URL=https://raw.githubusercontent.com/rapid7/metasploit-framework/master/db/modules_metadata_base.json
SECURITY_METASPLOIT_MAX_MB=64
# Exploit fields of a finding (detail)
GET /api/v1/security/findings/{id}/
# {"attack_vector": "network", "has_public_exploit": true, "has_metasploit": true,
# "exploitdb_ids": [50592], "metasploit_modules": ["exploit/multi/http/log4shell_header_injection"], ...}endoflife.date Lifecycles
AsPeekIt mirrors the release cycles and end-of-life dates published by endoflife.date for the operating systems and runtimes it can recognise, and uses them to raise end-of-life findings (see End of Life). The whole v1 dump (products/full, about 3 MB) is downloaded in one request and only the configured products are kept, one row per product and cycle (EolCycle: end of life eolFrom, extended support eoesFrom, isEol, isEoes). The outcome of every run is kept in the feed status entry endoflife/products.
- Schedule: the task sync_endoflife runs every week (beat entry sync-endoflife-cycles, every 604800 seconds) and downloads the dump from SECURITY_EOL_URL (default https://endoflife.date/api/v1/products/full). Sync now on the feed status page queues it right away. After every successful import the end-of-life findings are re-evaluated; they are also re-evaluated every day at 05:10 (beat entry sync-eol-findings)
- Products: SECURITY_EOL_PRODUCTS (comma-separated endoflife.date slugs; empty uses the default ubuntu, debian, rhel, rocky-linux, almalinux, alpine-linux, windows-server, python, nodejs, php, eclipse-temurin, postgresql, mysql, redis, nginx, kubernetes). A configured slug matches the name or one of the aliases of a dump product and is stored under the configured slug
- Reconciliation: for every product found, its cycles are upserted and the cycles no longer listed are deleted; the cycles of products removed from SECURITY_EOL_PRODUCTS are deleted. A configured product missing from the dump keeps its cycles and is counted as skipped (with a warning in the log). A release that is not an object, has no name or has a date that is not an ISO date is dropped and counted as malformed
- A dump that cannot be downloaded or parsed, has no "result" list or contains none of the configured products changes nothing: the error is shown in the feed status of endoflife/products
- Download: up to 3 redirects are followed; the initial URL and every redirect target pass the same SSRF checks as the OSV mirror. Dumps (or bundles) larger than SECURITY_EOL_MAX_MB (default 64) are refused
- Air-gapped import: python manage.py import_feed endoflife --bundle <file.json> imports a copy of the products/full dump with the same logic as the online sync (findings included) and makes no HTTP requests. It fails if the file is missing or has none of the configured products; --ecosystem and --scope are not accepted
# Air-gapped installs (download on a connected machine first)
curl -o products-full.json https://endoflife.date/api/v1/products/full
python manage.py import_feed endoflife --bundle /path/products-full.json
# Settings
SECURITY_EOL_URL=https://endoflife.date/api/v1/products/full
SECURITY_EOL_MAX_MB=64
SECURITY_EOL_PRODUCTS=ubuntu,debian,python
SECURITY_EOL_WARNING_DAYS=90Trivy DB (Container Images)
The packages of running container images are scanned by Trivy against its own database, held by the trivy-server service in the trivy-cache volume (see Container Image Scanning, /docs/security/image-scanning). AsPeekIt does not download the Trivy DB itself: it records its state in the feed status entry trivy/db.
- The task sync_trivy_db_status (beat sync-trivy-db-status, every 6 hours) reads <SECURITY_TRIVY_CACHE_DIR>/db/metadata.json (default /trivy-cache): if it exists the run is a success with UpdatedAt as cursor, otherwise it fails with "Trivy DB not found"
- trivy-server updates the database by itself from TRIVY_DB_REPOSITORY (default mirror.gcr.io/aquasec/trivy-db:2); point it at an internal OCI mirror for restricted networks
- Air-gapped import: set TRIVY_SKIP_DB_UPDATE=true and run python manage.py import_feed trivy --bundle <file> with a tar.gz that contains only trivy.db and metadata.json, optionally under db/. Bundles with symlinks, path traversal, other files or larger than SECURITY_TRIVY_BUNDLE_MAX_BYTES (default 2 GiB) are refused; the database is extracted to a temporary directory and moved into the shared volume atomically
- By default (SECURITY_IMAGE_FINDINGS_SOURCE=matcher) image packages are matched against the OSV mirror like host packages, and the Trivy DB is used only by trivy-server; with SECURITY_IMAGE_FINDINGS_SOURCE=trivy the vulnerabilities reported by Trivy become findings with source trivy
Wordfence Intelligence
WordPress core, plugins and themes are not covered by OSV. AsPeekIt mirrors their vulnerabilities from the Wordfence Intelligence production feed (Defiant) and stores them as advisories with source WORDFENCE (ID WORDFENCE-<uuid>), so the component matcher evaluates the wordpress, wordpress-plugin and wordpress-theme components of the CMS inventory (see Web Applications, /docs/security/web-applications) like any other package. The outcome is kept in the feed status entry wordfence/vulnerabilities.
- The task sync_wordfence (beat sync-wordfence-vulnerabilities, every day) downloads the whole feed; it needs an API key (free Wordfence Intelligence account) in SECURITY_WORDFENCE_API_KEY. Without a key the scope fails with "Wordfence API key not configured (SECURITY_WORDFENCE_API_KEY)" and no request is sent
- The key is sent only as an Authorization: Bearer header, never in the URL; redirects are refused so it never reaches another host, and it is removed from every stored error and log line
- SECURITY_WORDFENCE_URL: the feed URL (default https://www.wordfence.com/api/intelligence/v2/vulnerabilities/production) or an internal mirror, checked by url_safety. SECURITY_WORDFENCE_MAX_MB: maximum size of the download or bundle and of its decompressed content (default 512)
- Air-gapped import: python manage.py import_feed wordfence --bundle <file> with the feed JSON saved as .json or .json.gz. No API key and no HTTP request are needed; the import is the same as the online sync
- Ecosystems: core software becomes the package wordpress of the WordPress ecosystem, plugins WordPress-Plugin and themes WordPress-Theme, named by their slug. A theme is never matched against a plugin advisory with the same slug (and vice versa)
- Ranges: each affected_versions entry is stored as a BOUNDS range (from/to with their inclusive flags, * for no bound), and the patched_versions as the fixed versions: the finding shows the smallest fixed version above the installed one, or none (fix_state no_fix) when the software is not patched. Versions are compared with the PHP version_compare algorithm (dev < alpha/a < beta/b < RC < release < pl/p; 6.4 equals 6.4.0)
- Identity and severity: a record with a CVE gives a finding on the CVE (NVD severity when the CVE is in the NVD database), otherwise on WORDFENCE-<uuid> with the Wordfence CVSS rating as severity. Informational records are skipped, malformed ones counted and skipped; the CVSS vector, score, rating and the copyright notices of each record are stored with the advisory
- Withdrawn: after a complete run the WORDFENCE advisories no longer in the feed are marked withdrawn and their findings are resolved by the next matching run; an advisory that comes back is reactivated. An empty or invalid feed changes nothing
- Only new or updated records are rewritten (a second import of the same file writes 0 records); the feed status cursor is the latest updated date of the feed
Note: License: Wordfence Intelligence Terms and Conditions (https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/), free for commercial use with attribution; each record carries the copyright notice and license of Defiant, stored in database_specific.copyrights. The feed status wordfence/vulnerabilities records the attribution "Vulnerability data provided by Wordfence Intelligence, Copyright Defiant Inc. (https://www.wordfence.com/threat-intel/). Includes CVE content Copyright The MITRE Corporation."
SECURITY_WORDFENCE_API_KEY=<your Wordfence Intelligence API key>
SECURITY_WORDFENCE_URL=https://www.wordfence.com/api/intelligence/v2/vulnerabilities/production
SECURITY_WORDFENCE_MAX_MB=512
# Air-gapped: download the feed on a machine with Internet access...
curl -H "Authorization: Bearer $KEY" -o wordfence.json \
https://www.wordfence.com/api/intelligence/v2/vulnerabilities/production
gzip wordfence.json
# ...then import it
python manage.py import_feed wordfence --bundle /path/wordfence.json.gzComponent Matching
The task match_cves_to_assets runs four steps in this order: the installed components of the software inventory against the mirrored OSV and Wordfence advisories (source osv), the Trivy image findings (source trivy, see Trivy DB above), the Joomla and Nextcloud cores against the NVD CPEs (source nvd-cpe, see Web Applications), then the CPE matcher on the software reported in asset attributes (unchanged, source nvd). A component is affected when its version is listed by an advisory that is not withdrawn, or falls inside one of its ranges according to the version comparator of the ecosystem (dpkg, rpm, apk, PEP 440, semver, RubyGems, Composer, PHP version_compare for WordPress). Findings have source osv; a range with a version that cannot be compared is skipped and counted, and never matched approximately.
- Supported distributions: Ubuntu (ubuntu-24.04 uses the advisories of Ubuntu:24.04 and Ubuntu:24.04:LTS, never Ubuntu Pro), Debian (debian-12.x uses Debian:12), Alpine (alpine-3.19.1 uses Alpine:v3.19), Rocky Linux (Rocky Linux:9), AlmaLinux (AlmaLinux:9) and Red Hat Enterprise Linux (rhel-9.x uses every Red Hat:enterprise_linux:9:: stream). Components of other or malformed distributions are counted as unmapped. Language packages use PyPI, npm, RubyGems, Packagist, crates.io and Go; WordPress core, plugins and themes use the Wordfence advisories (WordPress, WordPress-Plugin, WordPress-Theme); Windows programs and container images are not evaluated by this matcher
- Lookup names: deb and apk packages are looked up by source package (the binary name when there is none) and compared with the source version for deb; rpm packages by source package and by binary name, because Red Hat and AlmaLinux advisories list binaries; language packages by name, with PyPI names normalized as in PEP 503 on both sides
- Identity: the CVEs of an advisory come from its ID, aliases and upstream identifiers (UBUNTU-CVE-2024-6387 counts as CVE-2024-6387). There is one finding per CVE and component group: a group is the source package of a distribution (all its binaries) or a language package at one path, so USN, DSA and GHSA advisories of the same CVE give one finding, while the same package in two virtual environments gives two. An advisory without a CVE gives a finding with its own ID. CVEs that NVD marks Rejected never produce findings
- Evidence in the finding details: component_id, package, installed_version, fixed_version (the smallest fixed version above the installed one across the advisories of the CVE, or null), advisory_source (the OSV ecosystem, for example Ubuntu or PyPI), advisory_ids, ecosystem, distro, path, affected_binaries, confidence high, cvss_score, severity_source and fix_state
- Fix state (details.fix_state, also the fix_state field of the API): no_fix when there is no fixed version; already_fixed_pending_rescan when the installed version already reaches it; otherwise one state per affected binary from its upgrade candidate (candidate_version of the component, compared with the ecosystem comparator): upgrade_resolves when every binary has a candidate at or above the fixed version, fixed_upstream_no_upgrade when none has a candidate, upgrade_insufficient in the other cases, unknown when a binary has no computed candidates (older agent, language packages), a deb binary version that is not the source version (or a binNMU +bN of it), or a version that cannot be compared. A change of fix_state alone updates the finding without reopening acknowledged ones
- Severity: the NVD CVSS severity and score when the CVE is in the NVD database (severity_source nvd); otherwise the highest severity stated in words by the advisories (Ubuntu priority or database_specific severity: negligible is info, moderate is medium, important is high; severity_source advisory); otherwise medium (severity_source default)
- Triage is kept: acknowledged and false-positive findings stay so unless the installed version changes or the severity rises. Findings of an evaluated group that no longer match (upgraded or removed component, withdrawn advisory, Rejected CVE) are resolved automatically with auto_resolved set
- Stale evidence: when a present component of the group was not observed by the last scan (coverage failed or partial), no finding of the group is resolved
- Incremental runs: the first run (and match_cves_to_assets with full=True) evaluates every active asset in batches of assets by ascending ID. Later runs only evaluate the groups of components changed since the previous run (created, changed, removed or with stale evidence flipped) and of components touched by advisories imported since then. A full run also happens every week (Sunday 03:30 UTC), and applies NVD changes (CVSS, Rejected) and advisory revisions to the groups not otherwise evaluated
- One run at a time: a run started while another one is going (for example a manual run during the hourly one) is skipped with status locked, and the run in progress keeps its state
- Resumable runs: a run that takes longer than SECURITY_COMPONENT_MATCH_BUDGET_SECONDS (default 600) stops after the current batch with status partial, and the next run resumes from the next asset. The state (cursor, progress, last attempt and success, last error and summary) is kept in the matcher state osv-components
- After the upgrade to this version the OSV cursors are reset once, so the next sync_osv re-reads the archives and fills the upstream identifiers of the stored advisories
# Time budget of one component matching run (seconds)
SECURITY_COMPONENT_MATCH_BUDGET_SECONDS=600
# Force a full run from a Django shell
python manage.py shell -c "from apps.security.tasks import match_cves_to_assets; print(match_cves_to_assets(full=True))"Reading a Finding's Evidence
In the security findings queue every CVE row has a chevron button (Show evidence) in its first column. It opens the evidence of the finding below the row, without leaving the list; several rows can stay open together. The evidence is loaded only when a row is opened (the list never carries it), shows a spinner meanwhile and a Retry button if loading fails. Rows of other finding types (file changes, exposures, Defender alerts) do not expand.
- Score: the NVD CVSS score of the CVE (the CVSS score stored in the finding when the CVE is not in the NVD database), the attack vector (Network, Adjacent, Local, Physical) and the CVSS vector. Scores are never computed from vectors
- Description, then Package: source package, installed version and fixed version (— when no advisory states a fix). Findings of the CPE matcher show the matched software and version
- Affected binaries: one row per binary package of the finding, with its source package, type (deb, rpm, apk, pypi…) and path. The section is omitted when the finding lists no binaries
- Dates: when the finding was detected and when it was last seen by a matching run
- References: CVE.org and NVD for a CVE; OSV for every advisory ID (or for the CVE when there is none); the distribution record: Ubuntu notice (USN) and Ubuntu CVE tracker, Debian security tracker for the CVE and the DSA/DLA, Red Hat errata (RHSA) and Red Hat CVE page, Alpine security tracker; GitHub for a GHSA advisory. A GHSA advisory without a CVE has no CVE.org or NVD link
- Links are built only from the finding ID and its advisory IDs, after checking them against a whitelist of ID formats; IDs that do not match (spaces, URLs, scripts) are dropped, and no URL is ever taken from the finding details. The distribution comes from the advisory source (Ubuntu:, Debian:, Alpine:, Red Hat:) or from the ID prefix
- Missing or malformed values are shown as — instead of breaking the view
- Finding detail page: the same evidence in extended form, with advisory IDs, advisory source, distro, confidence, severity source, CVSS v3.1 and v4.0 with their vectors, CWE, the NVD status and the NVD publication date. Its API response (GET /api/v1/security/findings/{id}/) includes a cve object with these NVD metrics, or null when the identifier is not a CVE or the CVE is not in the NVD database
Feed Status Page
Administrators check that the vulnerability data the team relies on is current in Security → Vulnerability Feeds (/dashboard/settings/feeds). The page is visible to the admin role only and refreshes every minute. It shows one card per feed (NVD CVE database, OSV advisories, CISA KEV catalog, FIRST EPSS scores, public exploits, endoflife.date lifecycles, Trivy DB, Wordfence Intelligence) with a row for each scope (nvd/cves, one row per OSV ecosystem, kev/catalog, epss/scores, exploits/exploitdb, exploits/metasploit, endoflife/products, trivy/db and wordfence/vulnerabilities), and the license and attribution of the feed below it.
- Up to date: the last sync of the scope succeeded within 2× the expected interval
- Stale: the scope has never synced successfully, or its last success is older than 2× the expected interval. The expected interval is the schedule of the feed beat entry (sync-nvd-database, sync-osv-advisories, sync-epss-scores, sync-exploits, sync-wordfence-vulnerabilities: 24 hours by default; sync-kev-catalog: 6 hours; sync-endoflife-cycles: 7 days); crontab or missing entries count as 24 hours
- Error: the last run of the scope failed; its last error is shown in the row. A scope in error can be Stale at the same time, and then shows both badges
- Each row shows the last success, the last attempt, the records imported by the last successful run (column "Imported (last run)") and the last error. Expected scopes that have never synced (for example an ecosystem just added to SECURITY_OSV_ECOSYSTEMS) appear as never synced rows: Never, 0 records, Stale
- Scopes no longer configured stay listed with their real state: their advisories are still in the mirror and no longer updated
- Sync now queues the sync task of the feed right away (202). A second click on the same feed within 60 seconds is refused (409: a sync was queued less than a minute ago); when the task queue is unreachable the request fails with 503 and can be retried
Note: Other views use is_stale from GET /api/v1/security/feeds/ to flag sources that stopped updating; is_stale is independent of status (a feed in error can also be stale).
# Health of every feed scope (any authenticated user)
GET /api/v1/security/feeds/
# [{"feed": "nvd", "label": "NVD CVE database", "scope": "cves", "status": "stale",
# "is_stale": true, "last_success_at": "...", "last_attempt_at": "...", "last_error": "",
# "records": 1234, "license": "...", "attribution": "...",
# "expected_interval_seconds": 86400, "stale_after": "..."}, ...]
# Queue a sync now (admin only): 202 {"status": "queued", "task_id": "..."}, 404 unknown feed,
# 409 queued less than a minute ago, 503 task queue unavailable
POST /api/v1/security/feeds/{feed}/sync/
Licenses and Attribution
OSV data is published by each upstream source under its own license. The feed status of every OSV ecosystem records the license as "Per-source (see https://google.github.io/osv.dev/data/)" and the attribution "Vulnerability data from OSV.dev (https://osv.dev), aggregating upstream advisory databases under their own licenses."
- GitHub Advisory Database (GHSA), PyPA, Go and Red Hat: CC-BY 4.0
- RustSec (crates.io): CC0 1.0
- Ubuntu and Alpine: CC-BY-SA 4.0
- Rocky Linux: BSD
- AlmaLinux: MIT
- Drupal (Packagist): MIT
- Debian: no license declared by osv.dev
Note: NVD: the feed status nvd/cves records the license "Public domain (U.S. Government work); NVD Terms of Use: https://nvd.nist.gov/developers/terms-of-use" and the notice "This product uses data from the NVD API but is not endorsed or certified by the NVD." CISA KEV: the feed status kev/catalog records the license "CC0 1.0 Universal (public domain); https://www.cisa.gov/known-exploited-vulnerabilities-catalog" and the attribution "Known Exploited Vulnerabilities Catalog by CISA (https://www.cisa.gov/known-exploited-vulnerabilities-catalog)." FIRST EPSS: the feed status epss/scores records the license "Free to use, attribution requested (FIRST EPSS FAQ); https://www.first.org/epss/faq" and the attribution "EPSS scores by FIRST, the Forum of Incident Response and Security Teams (https://www.first.org/epss)." ExploitDB: the feed status exploits/exploitdb records the license "GPL-2.0 (Exploit Database repository license); https://gitlab.com/exploit-database/exploitdb" and the attribution "Exploit data from the Exploit Database by OffSec (https://www.exploit-db.com)." Metasploit: the feed status exploits/metasploit records the license "BSD-3-Clause (Metasploit Framework license); https://github.com/rapid7/metasploit-framework/blob/master/LICENSE" and the attribution "Module metadata from the Metasploit Framework by Rapid7 (https://www.metasploit.com)." endoflife.date: the feed status endoflife/products records the license "MIT License; https://github.com/endoflife-date/endoflife.date" and the attribution "Product lifecycle data by endoflife.date (https://endoflife.date), MIT License." Trivy DB: the feed status trivy/db records the license "Apache-2.0 (Trivy and trivy-db); advisories are aggregated from upstream sources under their own licenses; https://github.com/aquasecurity/trivy-db" and the attribution "Trivy vulnerability database by Aqua Security (https://github.com/aquasecurity/trivy-db), aggregating upstream advisory databases under their own licenses." Wordfence Intelligence: the feed status wordfence/vulnerabilities records the license "Wordfence Intelligence Terms and Conditions (https://www.wordfence.com/wordfence-intelligence-terms-and-conditions/): free for commercial use with attribution; each record carries Defiant's copyright notice and license (stored in database_specific.copyrights)" and the attribution "Vulnerability data provided by Wordfence Intelligence, Copyright Defiant Inc. (https://www.wordfence.com/threat-intel/). Includes CVE content Copyright The MITRE Corporation."
Warning: Licenses are listed as declared by osv.dev/data, the NVD terms of use, the CISA KEV catalog page, the FIRST EPSS FAQ and the ExploitDB and Metasploit Framework repositories on 2026-11-28 and the endoflife.date repository and the Wordfence Intelligence terms on 2026-11-29. Check the current terms of each source before redistributing advisory data.