Modern CLI for exploring vulnerability data with powerful search, filtering, and analysis capabilities
# 1. Get vulnx
go install github.com/projectdiscovery/vulnx/v2/cmd/vulnx@latest
# 2. Explore commands
vulnx --help
vulnx search --help
# 3. Start exploring vulnerabilities (no API key required)
vulnx filters # See all available search fields
vulnx search apache # Keyword search
vulnx id CVE-2021-44228 # One CVE in detailvulnx reads SecurityContext (https://api.securitycontext.com/v1/cves). It serves
CVE records only: nuclei template records without a CVE (vulnx id <template-id>) are not supported. No API key is
needed; see Rate limits. VULNX_API_URL points vulnx at another SecurityContext deployment.
Queries are field:value terms joined with &&; || works between values of one field
(severity:critical || severity:high), a keyword search takes up to 5 words, and a search filters on one vendor or
product. Wildcards, NOT on groups, upper bounds on scores and sorting or faceting on fields SecurityContext does not
index are rejected with a message saying so. vulnx filters lists every field.
Search vulnerabilities with precision:
vulnx search "severity:critical && is_remote:true"
vulnx search "apache" --limit 20
vulnx search "cvss_score:>=8 && cve_created_at:2024"Get detailed vulnerability info:
vulnx id CVE-2021-44228
vulnx id CVE-2024-3400 --jsonAnalyze vulnerability patterns:
vulnx analyze --fields severity
vulnx analyze --fields vendor -q "is_kev:true"| Command | Purpose | Example |
|---|---|---|
search | Find vulnerabilities with advanced filters | vulnx search "apache && severity:high" |
id | Get details for specific CVE | vulnx id CVE-2021-44228 |
filters | List all available search fields and filters | vulnx filters |
analyze | Aggregate data by fields | vulnx analyze -f severity |
scan | Check package versions, lockfiles, SBOMs or images | vulnx scan npm/lodash@4.17.20 |
version | Show version info and check for updates | vulnx version |
update | Update vulnx to latest version | vulnx update |
healthcheck | Check that the API answers | vulnx healthcheck |
Output formats:
vulnx search "apache" --json # Machine-readable JSON
vulnx search "apache" --output results.json # Save to file
vulnx search "apache" --output results.csv # Save as CSV (format picked by extension)
vulnx search "apache" --silent # Quiet output
vulnx search "apache" --no-color # No colors (also off when output is not a terminal)Logging and debugging (all on stderr, so --json output stays clean):
vulnx --verbose search "apache" # Verbose (-v): also show notices hidden by default
vulnx --debug search "apache" # Debug logs plus request and response dumps
vulnx --debug-req search "apache" # Dump requests only
vulnx --debug-resp search "apache" # Dump responses onlySearch control:
vulnx search "apache" --limit 50 # Get 50 results
vulnx search "apache" --sort-desc cvss_score # Sort by CVSS score
vulnx search "apache" --fields cve_id,severity # Specific fields onlyAdvanced search:
vulnx search --term-facets severity=5,vendor=10 "apache"
vulnx search --kev --term-facets vendor "remote code"
vulnx search --detailed "xss" # Detailed output like 'id' commandExplore what you can search on:
vulnx filters # Show all available search fields
vulnx filters --json # Machine-readable field list
vulnx filters --output fields.json # Save field info to file
vulnx filters --output fields.csv # Save field info as CSVThe filters command shows every searchable field: its data type, description, examples, enum values, and whether
it can be sorted on or counted with --term-facets / analyze.
Example output:
Field: severity
Data Type: enum
Description: Severity; several values with ||
Can Sort: No
Facet Possible: Yes
Examples: severity:critical, (severity:critical || severity:high)
Enum Values: critical, high, medium, low, none
Use this command to discover new search possibilities and understand field syntax before building complex queries.
Find high-risk vulnerabilities:
vulnx search "severity:critical && is_remote:true && is_kev:true"
vulnx search "cvss_score:>=8 && cve_created_at:>=2024" # High CVSS from 2024
vulnx search "is_kev:true && age_in_days:<90" # Recent KEV exploitsSearch by technology:
vulnx search "apache" # Apache vulnerabilities
vulnx search --vendor apache # One vendor (one per search)
vulnx search "affected_products.vendor:microsoft" # By vendorFilter by severity and scores:
vulnx search "severity:high" # High severity
vulnx search "cvss_score:>=7" # CVSS score 7 or more
vulnx search "epss_score:>=0.8" # High EPSS scoreTime-based searches:
vulnx search "cve_created_at:>=2024" # Published in 2024 or later
vulnx search "cve_created_at:>=2024-01-01 && cve_created_at:<2024-07-01" # First half of 2024
vulnx search "age_in_days:<30" # Recent vulnerabilities (last 30 days)Find exploitable vulnerabilities:
vulnx search "is_poc:true" # Has proof of concept
vulnx search "is_kev:true" # Known exploited vulns
vulnx search "is_template:true" # Has Nuclei templates
vulnx search --detailed "log4j" # Detailed analysis of specific vuln| Flag | Short | Description | Example |
|---|---|---|---|
--product | -p | Filter by one product (vendor:product, or a product name) | --product apache:log4j |
--vendor | Filter by one vendor | --vendor microsoft | |
--severity | -s | Filter by severity | --severity critical,high |
--cvss-score | Minimum CVSS score | --cvss-score ">=8" | |
--epss-score | Minimum EPSS score | --epss-score ">=0.8" | |
--vuln-age | -a | Filter by age in days | --vuln-age "<30" |
--kev | In CISA's KEV list (VulnCheck's: query is_vkev:true) | --kev | |
--template | -t | Has Nuclei templates | --template |
--poc | Has proof of concept | --poc | |
--remote-exploit | Remotely exploitable | --remote-exploit | |
--vuln-status | Filter by NVD status | --vuln-status analyzed | |
--cpe | CVEs affecting one product version | --cpe 'cpe:2.3:a:apache:tomcat:8.5.62:*:*:*:*:*:*:*' | |
--version | With --product vendor:product: CVEs affecting that version | --version 8.5.62 |
| Flag | Short | Description | Example |
|---|---|---|---|
--detailed | Detailed output like 'id' | --detailed | |
--limit | -n | Number of results (1-1000) | --limit 50 |
--offset | Pagination offset (offset + limit up to 1000) | --offset 100 | |
--all | Every matching result, up to 10,000 (ignores --limit) | --all | |
--sort-asc | Sort ascending (cve_created_at, cve_updated_at, cvss_score, epss_score, trending) | --sort-asc cvss_score | |
--sort-desc | Sort descending | --sort-desc cve_created_at | |
--fields | Select specific fields | --fields cve_id,severity | |
--term-facets | Count matches by up to 3 fields (see vulnx analyze help) | --term-facets severity=5 | |
--facet-size | Buckets per facet (1-50) | --facet-size 20 |
Product and vendor filtering:
vulnx search --product apache:log4j # One product, as vendor:product
vulnx search --product log4j # A product name NVD gives one vendor
vulnx search --vendor microsoft # One vendorSeverity and scoring:
vulnx search --severity critical,high # Filter by severity
vulnx search --cvss-score ">=8" # Minimum CVSS score
vulnx search --epss-score ">=0.8" # Minimum EPSS score
vulnx search --vuln-status analyzed # NVD status
vulnx search --vuln-age "<30" # Recent vulnerabilitiesExploit characteristics:
vulnx search --kev # In CISA's KEV list
vulnx search "is_vkev:true" # In VulnCheck's KEV list (includes every CISA entry)
vulnx search --template # Has Nuclei templates
vulnx search --poc # Has proof of concept
vulnx search --remote-exploit # Remotely exploitable
vulnx search "is_ransomware:true" # KEV entry records ransomware use
vulnx search "is_initial_access:true" # VulnCheck initial-access exploitCVEs affecting one product version (by CPE):
vulnx search --cpe 'cpe:2.3:a:apache:tomcat:8.5.62:*:*:*:*:*:*:*'
vulnx search --product apache:tomcat --version 8.5.62 # the same, without writing the CPE
vulnx search --cpe 'cpe:2.3:a:apache:http_server:1.3.13:*:*:*:*:*:*:*' --kev --sort-desc cvss_scoreResults come most urgent first (severity, then CVSS). Severity, exploit, score, age, CWE and remote/auth filters
and sorting work with --cpe; keywords, vendor and facets do not.
Scan a dependency file or a list of package versions: lockfiles (package-lock.json, yarn.lock,
pnpm-lock.yaml, poetry.lock, uv.lock, Cargo.lock, go.mod, Gemfile.lock, composer.lock, ...), CycloneDX / SPDX JSON
SBOMs, compose.yaml or a Dockerfile; or versions given directly. A file is uploaded to SecurityContext and scanned
there; an SBOM is read locally and its components checked as a list. OS packages in CycloneDX and SPDX SBOMs are
judged by their distribution's advisories, as with --host:
vulnx scan package-lock.json
vulnx scan npm/lodash@4.17.20 pypi/django@3.2.0 apache:tomcat@8.5.62
vulnx scan --list versions.txt --json
vulnx scan sbom.cdx.json --vex openvex -o sbom.openvex.json # OpenVEX
vulnx scan sbom.cdx.json --vex cyclonedx -o sbom.vex.cdx.json # CycloneDX VEXScan a folder: vulnx scan <folder> reads a project or any directory here, without uploading a file. It
parses the lockfiles and manifests it finds (package-lock.json and npm-shrinkwrap.json, yarn.lock in both formats,
pnpm-lock.yaml, requirements*.txt, Pipfile.lock, poetry.lock, uv.lock, go.mod with its replace directives,
Cargo.lock, Gemfile.lock, composer.lock) and JSON SBOMs; reads the packages installed under it (node_modules,
site-packages, gem specifications), its Go and Rust programs, and the MCP servers its own configuration starts
(.mcp.json, .cursor/mcp.json, .vscode/mcp.json). The walk stays inside the folder: links are not followed and
version control directories are not entered. What the folder's git ignore rules exclude (each .gitignore, the
repository's info/exclude and the global excludes file, as git reads them) and repositories or worktrees nested
in it are skipped, so installed trees and build output a repository ignores are left to its lockfiles; the grid
says how many, and --no-ignore reads them too. A package found in several places is checked once and keeps every
place, relative to the folder. A git, local or unpinned dependency has no release to judge and is listed as not
checked. Only the names and versions are sent to SecurityContext, as with --host; the files and their paths stay
on this machine.
The terminal shows the grid with one row per source (each lockfile by its path, installed packages by kind, Go and
Rust programs), then the affected packages; --show-all lists the clean ones too. --json, -o, --vex,
--full, --fail-on, --sbom (the folder's SBOM, vulnx-folder-<date>.cdx.json unless named) and --report
work as with --host; Go reachability is checked for the programs in the folder.
The images its Dockerfiles (FROM lines; build stages and scratch are not images, ARG defaults fill variables)
and Compose files (image: of services not built here; ${VAR:-default} resolved) name are listed under the grid,
not scanned. --images has SecurityContext pull and scan each, three at a time: each becomes a row of the grid
and its packages join the list; an image that is private, missing, or names a variable no file sets is listed as
not checked. Only the image names are sent.
vulnx scan . # the current directory
vulnx scan ~/src/app --fail-on high # exit 2 if a reachable finding is known exploited, critical or high
vulnx scan ~/src/app --json -o app.json
vulnx scan ~/src/app --images # also scan the images its Dockerfiles and Compose files nameScan an operating system: a container image, or the machine vulnx runs on:
vulnx scan --image debian:12-slim # a public image: SecurityContext pulls and scans it
vulnx scan --image ghcr.io/owner/name:tag --platform linux/arm64
vulnx scan --host # this machine
vulnx scan --host --root /mnt/rootfs # a mounted Linux filesystem--host reads what is installed:
- OS packages: on Linux from dpkg, apk or rpm, with the release from
/etc/os-release(Debian, Ubuntu, Alpine, RHEL, Rocky Linux, AlmaLinux), judged by the distribution's own advisories, so backported fixes count; on macOS the macOS version, against Apple's per-release fixes. - Python, npm and Ruby packages outside the distribution's own directories,
uv toolandpipxenvironments included. - The modules linked into Go binaries on PATH and the crates Rust binaries embed.
- On macOS, Homebrew formulae and applications. They have no package ecosystem, so only those with a known product are judged: a formula whose own source repository a product lists, an application by its bundle, an Electron application by its framework version and the npm packages in its bundle. The rest are listed as not checked.
- AI tools: assistant and editor applications, agent command-line tools, AI editor extensions, and the packages
MCP servers are started from (
npx server@1.2.0,uvx server==1.2.0) in each agent's configuration. A server with no version pinned, or one that is a local program, is listed as not checked. The harnesses read are Claude Code and Claude Desktop, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Qwen Code, OpenCode, Copilot CLI, Goose, Amp, Droid, Kiro, Amazon Q, Zed, Crush, Junie, LM Studio, Continue, and the Cline, Roo Code and Kilo Code extensions. - Local models: the models in the Hugging Face cache, LM Studio's and Ollama's stores and the PyTorch hub cache.
What is sent: the names and versions of the components it finds, editor extensions and MCP server packages included, are sent to SecurityContext to be checked. From a configuration only a package's name and version are read, never its environment or headers. Paths, where each component was found and the runtime snapshot stay on this machine, in the local JSON.
The terminal shows one screen, the grid: per source, the findings a program can reach by worst severity, with
the number known to be exploited and the number of components checked. Under it, Agent setup counts what coding
agents and editors load and run for you (editor extensions, skills, plugins, hooks, MCP servers) and lists the
ones whose setup lets someone else decide what runs on the machine: an MCP server with no version pinned, fetched
from a git URL or another registry, or reached over plain http; an extension installed from a file, named like a
well-known one from another publisher, or removed by its marketplace as malware, an impersonation or
untrustworthy; a skill or hook that downloads code and runs it, or whose instructions carry invisible characters;
an agent set to run commands without asking; a model file that imports something that runs commands when loaded;
Ollama or LM Studio set to listen beyond this machine. These are read from the files and are risks, not verdicts:
the JSON lists them under host.agent_surface and host.risks, apart from the vulnerabilities.
A scan printed to the terminal always writes two files in the current directory, readable by you only: the full
result as vulnx-host-<date>.json (every component with its advisories, where it was found, how to update it, Go
reachability, the runtime snapshot and what was not checked) and what was checked as the CycloneDX SBOM
vulnx-host-<date>.cdx.json, which holds no runtime data. --json, -o and --vex write the result instead of
both; with them the SBOM is written only when --sbom=path names it.
vulnx scan --host # the grid; the full result and the SBOM as vulnx-host-<date>.json / .cdx.json
vulnx scan --host --view actions # what to update, most urgent first, as commands
vulnx scan --host --view details # per component (also: brief, programs, markdown)
vulnx scan --host --json # the full result on stdout (-o names a file)
vulnx scan --host --sbom=host.cdx.json # name the SBOM file (an existing file is not overwritten)
vulnx scan --host --graph # also write a local graph page of the findings
vulnx scan --host --report # also upload the SBOM and print a link that expires in 24 hours
vulnx scan --host --fail-on kev # exit 2 if a reachable finding is known exploited
vulnx scan --host --fail-on high # exit 2 if one is known exploited, critical or highGo reachability: SecurityContext returns the functions each Go advisory names as affected, and vulnx looks them up in each binary's own function table (present in stripped binaries too). A finding is reachable when the binary links a listed function and not reachable when it links no function of any affected package; it stays unknown when the package is linked but no listed function is, since the compiler may have inlined it. Module versions no program can reach are not counted.
Runtime snapshot: a scan of this machine also records, in the local JSON only, a passive snapshot under
host.runtime: TCP listeners, bound UDP endpoints, the visible processes that own them, their numeric account IDs
and executable paths. It is collected in a separate worker with a deadline, limited by what the account may see,
and states its scope and gaps. No service is contacted, no privilege raised, and no process arguments,
environments or secrets read; a listening executable's embedded Go or Rust package versions are read from the file,
never by running it. Wildcard and specific bind addresses do not establish internet access. --root skips it.
The SBOM names, for each component, the source that read it and the places that hold it, and for each place where
it is on disk and how it is updated; home directories read ~, and places seen only by the runtime snapshot are
left out. --graph writes vulnx-host-<date>.graph.html: one page that loads nothing from the network, drawing
the places things are installed in, the affected components there and the advisories that affect them.
--report uploads the SBOM: it stores the machine's component names and versions, with the places above, on
SecurityContext under an unlisted link, which anyone who has the link can read. The link works for a day; after
that it stops answering, and SecurityContext keeps the names and versions for analysis, no longer tied to who sent
them. Against an API that cannot expire a link, --report uploads nothing.
A VEX document has one statement per package and CVE: affected (with the fixed version when known) or under investigation (with the reason). Clean packages get no statement.
| Flag | Description |
|---|---|
--list <file> | Read package versions from a file (one per line or comma-separated) |
--show <n> | CVEs listed per package in text output (default 10; 0 lists all) |
--show-all | List every CVE per package in text output (same as --show 0) |
--full | Fetch every CVE of a product version (vendor:product@version); without it a scan returns the 10 most urgent. --vex implies it; text output lists them all unless --show is set |
--vex openvex|cyclonedx | Write a VEX document instead of the report |
--vex-author <name> | Author of the OpenVEX document (default vulnx) |
--wait <duration> | How long to wait for the scan (default 20m; image pulls can take minutes) |
--image <ref>, --platform <os/arch> | Scan a public container image (default platform linux/amd64) |
--host, --root <dir> | Scan this machine, or a mounted Linux root filesystem |
vulnx scan --full apache:tomcat@8.5.62 # every CVE of that version
vulnx scan --vex openvex --vex-author "Acme PSIRT" -o vex.json --list versions.txt
vulnx scan --image debian:12-slim --wait 45mFetch everything a search matches (page by page, up to 10,000 CVEs):
vulnx search --kev --all -o kev.jsonWhat changed on a CVE (KEV listings, NVD status, EPSS, exposure, patches, labels):
vulnx id CVE-2024-3400 --historyMultiple input methods:
# Single ID lookup
vulnx id CVE-2021-44228
# Multiple IDs (comma-separated)
vulnx id CVE-2021-44228,CVE-2023-4966,CVE-2024-3400
# Auto-detection from stdin (no 'id' command needed)
echo "CVE-2021-44228" | vulnx
echo -e "CVE-2021-44228\nCVE-2023-4966" | vulnx
# File input
vulnx id --file ids.txtBatch processing:
# JSON output for automation
vulnx id --json CVE-2021-44228 CVE-2023-4966
# Save to file
vulnx id --output vulns.json --file ids.txt
vulnx id --output vulns.csv --file ids.txt
# Pipeline integration
cat report.txt | grep -o 'CVE-[0-9]\{4\}-[0-9]\+' | vulnx id --json| Field | Description | Example Values |
|---|---|---|
severity | Vulnerability severity |
low, medium, high, critical |
cvss_score | Minimum CVSS score (0-10) | >=7.5 |
cve_id | CVE identifier | CVE-2021-44228 |
is_remote | Remotely exploitable |
true, false |
is_kev | Known exploited vuln |
true, false |
is_poc | Has proof of concept |
true, false |
vendor | Vendor name |
apache, microsoft |
product | Product, as vendor:product or a name |
apache:tomcat, log4j |
cve_created_at | Publication date |
>=2024, >2024-01-01, <2023 |
age_in_days | Days since publication |
<30, >365, <=90 |
Basic searches:
vulnx search "apache" # Keyword
vulnx search "remote code execution" # Keywords, all required (up to 5)
vulnx search "severity:critical" # Field searchBoolean logic:
vulnx search "apache && nginx" # Both keywords
vulnx search "severity:critical || severity:high" # Either value of one field
vulnx search "is_kev:true && NOT is_poc:true" # NOT on a true/false field
vulnx search "apache && severity:high" # Keyword and filterComparisons (scores take a minimum only; wildcards are not supported):
vulnx search "cvss_score:>=9" # At least
vulnx search "cve_created_at:>=2024-01-01" # Date comparison
vulnx search "age_in_days:<30" # Recent vulnerabilities
vulnx search "cve_created_at:2024" # Published in 2024A date without an operator matches that whole year, month or day; >=, >, < and <= compare.
Single date comparisons:
vulnx search "cve_created_at:>=2024" # CVEs from 2024 onward
vulnx search "cve_created_at:<2024" # CVEs before 2024
vulnx search "cve_created_at:>2024-06-01" # CVEs after June 1, 2024Date ranges:
# CVEs from January 2024 only
vulnx search "cve_created_at:>=2024-01-01 && cve_created_at:<2024-02-01"
# High CVSS CVEs from 2024
vulnx search "cvss_score:>=8 && cve_created_at:2024"
# Recent vulnerabilities (age-based)
vulnx search "age_in_days:<30" # Last 30 days
vulnx search "age_in_days:>365" # Older than 1 yearSupported formats:
-
2024(year) -
2024-01(year-month) -
2024-01-15(full date)
Calls are anonymous, and SecurityContext allows a limited number of requests a minute per address. A short rate limit is waited out automatically; a longer one stops with a message.
Version management:
vulnx version # Show version and check for updates
vulnx version --disable-update-check # Show version without update check
vulnx update # Update to latest version
vulnx --update # Alternative update commandGlobal options:
vulnx --json search "apache" # JSON output
vulnx --silent search "apache" # No banner
vulnx --timeout 60s search "apache" # Custom timeout
vulnx --disable-update-check search "apache" # Disable automatic update checksRate limit issues: wait a minute and retry (see Rate limits).
"unsupported query": the query uses a field, operator or sort SecurityContext does not offer; the message says
which. Run vulnx filters for the fields that work.
No results:
vulnx search "is_kev:true" --limit 1 # Test with known results
vulnx healthcheck # Check connectivityLarge result sets:
vulnx search "apache" --limit 100 # Increase limit
vulnx search "apache" --offset 100 # Pagination (offset + limit up to 1000)
vulnx search --fields cve_id,severity "apache" # Fewer fieldsConnection issues:
vulnx --timeout 60s search "apache" # Increase timeout
vulnx --proxy http://localhost:8080 search "apache" # Use proxy
vulnx --debug search "apache" # Debug mode
vulnx --debug-req search "apache" # Dump requests to stderrHelp commands:
vulnx --help # All commands overview
vulnx search --help # Search command help
vulnx id --help # ID command help
vulnx filters --help # Filters command help
vulnx analyze --help # Analyze command help
vulnx version # Version info with update check
vulnx version --disable-update-check # Version info without update checkData exploration:
vulnx filters # Show all searchable fields
vulnx search help # Detailed search fields
vulnx analyze help # Available analyze fields-
Start immediately: vulnx works without an API key; just run
vulnx search apache -
Stay updated: vulnx automatically checks for updates; use
--disable-update-checkto disable - Use
vulnx filtersto discover all available search fields and their syntax - Start with broad searches, then narrow down with filters
- Use
--jsonfor scripting and automation - Combine multiple filters for precise results
- Use
analyzeto understand data patterns - Save frequently used queries as shell aliases
For advanced usage patterns and examples, see USAGE.md.
vulnx no longer ships an MCP server. Point an MCP client at the hosted SecurityContext server,
https://mcp.securitycontext.com (Streamable HTTP, stateless). It offers three tools: get_security_context (one
repository, package, product, CVE, ...), search_security_context (find and filter them) and
create_security_context (scan a public repository it does not have yet). It is anonymous and rate limited.
{
"mcpServers": {
"securitycontext": {
"url": "https://mcp.securitycontext.com"
}
}
}- The API is
https://api.securitycontext.com(override withVULNX_API_URL); the/v2/vulnerabilityAPI is no longer called. -
vulnx authis removed: vulnx works without an API key (ProjectDiscovery Cloud keys are no longer used). - Only CVE records are served:
vulnx idwith a nuclei template id that has no CVE fails. - Removed search flags:
--tags,--vuln-type,--hackerone,--highlight,--range-facets.--productand--vendortake one value.--cvss-scoreand--epss-scoretake a minimum (>=N). - Queries are narrower:
||only between values of one field, at most 5 keywords and 3 facets, no wildcards, score minimums only, and fields SecurityContext does not index are rejected with a message. -
vulnx analyzecounts by at most 3 of the fieldsvulnx analyze helplists, and rejects a positional query (it was ignored); filter with--query. -
vulnx mcpis removed: use the hosted SecurityContext MCP server (see AI assistants (MCP)).vulnx update --disable-update-checkis removed.
For development setup, code quality checks, and contribution guidelines, see DEVELOPMENT.md.
vulnx is distributed under MIT License.