Datasets:
Download README.md from professor3333/patchsight: direct link, hf CLI and curl.
- Browser
- Download file 3.4 kB
-
https://huggingface.co/datasets/professor3333/patchsight/resolve/main/README.md
- Command line
-
hf download hf://datasets/professor3333/patchsight/README.md
-
curl -L -o README.md https://huggingface.co/datasets/professor3333/patchsight/resolve/main/README.md
license: cc-by-4.0
pretty_name: PatchSight symbol database
language:
- en
tags:
- security
- vulnerabilities
- python
- pypi
- osv
size_categories:
- 1K<n<10K
configs:
- config_name: records
data_files: records.jsonl
default: true
- config_name: aliases
data_files: aliases.jsonl
PatchSight symbol database
For each PyPI security advisory with a fix on GitHub, the functions and classes its fix changed, and the ones a language model picked as vulnerable, with the hunks it cites. PatchSight uses it to tell which dependency alerts your code actually calls, with no model at scan time.
This is version 2026.11.22 (tag db-2026.11.22), the same as the GitHub release.
- 3,649 vulnerabilities, 3,809 records. 22,572 advisory IDs and aliases point at them.
patchsight-db-2026.11.22.sqlite.gz: SHA-2564f282f3d1da6c128b7675bbd8ed20bf35488731ec8923ac5f2ac751412c2a456.
| Records by source and confidence | Records |
|---|---|
| fallback, low | 179 |
| llm, low | 3,630 |
Every record is low confidence, by policy. It lists every definition the fix changed; the model's picks are kept as evidence. A low-confidence record can mark an alert as called, never as "imported, not called". See the dataset card and the model card for how records are made, what the tiers mean and what is measured.
Use
pip install patchsight
patchsight db update # the latest database, SHA-256 checked
patchsight scan .
Or read the records directly, at a fixed version:
from datasets import load_dataset
records = load_dataset("professor3333/patchsight", "records", revision="db-2026.11.22", split="train")
Files
records.jsonl: one record per line: vulnerability, package, confidence, source, import roots, symbols, entry points, fix commits, model and prompt version, input hash, the advisory'smodifiedtime, truncation, the tier reason and, for model picks, each symbol's rationale and cited hunks (commit, path and line ranges).aliases.jsonl: every advisory ID and alias (GHSA, PYSEC, CVE, ...) with the vulnerability it belongs to.patchsight-db-2026.11.22.sqlite.gz: the SQLite database the CLI downloads.
No third-party source code is included.
Attribution and licence
Advisory identifiers and affected-package data come from OSV.dev, which aggregates the GitHub Advisory Database and the PyPA Advisory Database. All three are licensed CC BY 4.0.
Changes made: PatchSight resolved each advisory's fix commit on GitHub, mapped the changed lines to function names with tree-sitter, and, where shown, had language models choose the vulnerable ones. It stores those names with file paths, line ranges and commit SHAs. No third-party source code is included.
Licence: the PatchSight symbol database is licensed under CC BY 4.0. If you share it, or data derived from it, credit "PatchSight symbol database" with the release, keep the attribution above, and say what you changed.