Skip to content
Back to skills

Ashish993 Ai Agent Skills Library Skills Cve Scanner

ASecurity

Given a list of package names and versions, query the OSV database for known vulnerabilities.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 12, 2026
securitypythongoflaskapidatabaseci/cdsecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill ashish993-ai-agent-skills-library-skills-cve-scanner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ashish993 Ai Agent Skills Library Skills Cve Scanner?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ashish993 Ai Agent Skills Library Skills Cve Scanner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-ashish993-ai-agent-skills-library-skills-cve-scann/badge)](https://www.skillsdirectory.com/skills/aibot88-ashish993-ai-agent-skills-library-skills-cve-scann)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cve-scanner
title: CVE Scanner
category: security
version: 1.0.0
---

# CVE Scanner

## Description

Given a list of package names and versions, query the OSV database for known vulnerabilities.

## When to Use

- Security audit of project dependencies
- CI/CD gate to block vulnerable packages

## When NOT to Use

- Runtime production scanning (too slow for hot paths)

## Inputs

| Name | Type | Required | Description |
|------|------|---------|-------------|
| packages | list | yes | List of {"name": str, "version": str, "ecosystem": str} |

## Outputs

| Name | Type | Description |
|------|------|-------------|
| vulnerabilities | list | List of CVE findings |
| safe_count | int | Number of packages with no known CVEs |

## Example

```python
import requests

def scan_packages(packages: list) -> dict:
    '''
    Uses OSV.dev API — free and no auth required.
    '''
    vulns = []
    for pkg in packages:
        resp = requests.post(
            "https://api.osv.dev/v1/query",
            json={"package": {"name": pkg["name"], "ecosystem": pkg.get("ecosystem", "PyPI")},
                  "version": pkg["version"]}
        )
        resp.raise_for_status()
        results = resp.json().get("vulns", [])
        for v in results:
            vulns.append({
                "package": pkg["name"],
                "version": pkg["version"],
                "id": v.get("id"),
                "summary": v.get("summary", "No summary"),
                "severity": v.get("database_specific", {}).get("severity", "UNKNOWN"),
            })
    safe = len(packages) - len({v["package"] for v in vulns})
    return {"vulnerabilities": vulns, "safe_count": safe}

# packages = [
#     {"name": "requests", "version": "2.25.0", "ecosystem": "PyPI"},
#     {"name": "flask", "version": "0.12.2", "ecosystem": "PyPI"},
# ]
# report = scan_packages(packages)
# print(f"Found {len(report['vulnerabilities'])} vulnerabilities")
```

Files in this skill

  • SKILL.md1.9 KB
  • source.json899 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.