Datasets:
File size: 3,399 Bytes
5463775 2d26402 5463775 2d26402 ffd1a3b 2d26402 ffd1a3b 2d26402 ffd1a3b 2d26402 ffd1a3b 2d26402 ffd1a3b 2d26402 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | ---
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](https://github.com/professor3333/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](https://github.com/professor3333/PatchSight/releases/tag/db-2026.11.22).
- **3,649 vulnerabilities, 3,809 records.** 22,572 advisory IDs and aliases point at them.
- `patchsight-db-2026.11.22.sqlite.gz`: SHA-256 `4f282f3d1da6c128b7675bbd8ed20bf35488731ec8923ac5f2ac751412c2a456`.
| 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](https://github.com/professor3333/PatchSight/blob/main/docs/dataset_card.md) and the [model card](https://github.com/professor3333/PatchSight/blob/main/docs/model_card.md) for how records are made, what the tiers mean and what is measured.
## Use
```bash
pip install patchsight
patchsight db update # the latest database, SHA-256 checked
patchsight scan .
```
Or read the records directly, at a fixed version:
```python
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's `modified` time, 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](https://osv.dev), which aggregates the [GitHub Advisory Database](https://github.com/github/advisory-database) and the [PyPA Advisory Database](https://github.com/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](https://creativecommons.org/licenses/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.
|