web-vuln-scanner is a free, open-source site vulnerability scanner and API security CLI and desktop GUI written in Rust.
Run read-only checks for TLS 1.0 to 1.3, OWASP security headers, OpenAPI specs, leaked secrets, JS source maps, exposed deployment files, and DNS hygiene locally or inside CI/CD with SARIF 2.1.0.
rustls with zero OpenSSL dependency.
# Install via Homebrew (macOS/Linux), Cargo, Scoop (Windows), or Docker
brew install websecaudit/tap/web-vuln-scanner
cargo install website-vulnerability-scanner
docker run --rm ghcr.io/websecaudit/website-vulnerability-scanner https://example.com
# Scan any website or staging URL in the terminal
web-vuln-scanner https://example.com --html report.html --sarif results.sarif
# Audit an API with its OpenAPI 3.0 spec and generate Nginx config fixes
web-vuln-scanner https://api.example.com --profile api --openapi openapi.json --fix-config nginx
# Enforce a baseline gate in CI/CD (exits with code 2 on new or worsened findings)
web-vuln-scanner https://example.com --baseline prev.json --fail-on-regression
Explore detailed check references, rule IDs, CLI flags, and server fix examples across all 15 audit guides:
Checks HSTS, CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy, COOP, and CORP.
Detects unsafe-inline, unsafe-eval, wildcard sources, and missing base-uri directives.
Flags missing Secure, HttpOnly, SameSite=None without Secure, and caching gaps.
Auto-generates targeted Nginx, Caddy, and Apache snippets from live scan findings.
Audits OpenAPI specs, anonymous access parity, JWT alg:none, and API response leaks.
Detects arbitrary origin reflection, wildcard policies, and Allow-Credentials risk.
Detects redacted AWS, GitHub, Stripe, Slack, PEM keys, DB URIs, and weak JWTs.
Matches jQuery, Lodash, Bootstrap, Axios, and others against CVEs and checks SRI.
Validates trust chain, SAN, expiry dates, HTTP redirects, HSTS, and TLS 1.0/1.1.
Detects .git, .env, docker-compose, phpinfo, and directory listings without SPA noise.
Audits CAA (RFC 8659), SPF (RFC 7208), and _dmarc TXT records (RFC 7489).
Run scheduled or PR audits with websecaudit/website-vulnerability-scanner and upload SARIF.
Maps findings to OWASP ASVS and WSTG with CheckOutcome coverage accuracy.
Distinguishes new, worsened, resolved, and unverified findings with --baseline.
All CLI flags, --rules JSON schema, exit codes, and when to pair with ZAP or Semgrep.
| Capability | web-vuln-scanner | Active DAST (ZAP / Nuclei) | SAST (Semgrep / CodeQL) |
|---|---|---|---|
| Safe on production without DB writes | Yes (non-destructive) | Requires isolated staging | Yes (source code) |
| Headers, TLS, DNS, CORS, cookies, and server fixes | Yes, with Nginx/Caddy/Apache snippets | Partial (no server config gen) | No |
| OpenAPI spec and anonymous access verification | Yes (--openapi) | With setup | Limited |
SARIF 2.1.0 and baseline diff (unverified tracking) | Yes | Varies | Yes |
| Active SQLi / XSS / RCE fuzzing | No (excluded for live site safety) | Yes | Static taint rules |