Skip to main content

predisclose

ci OpenSSF Scorecard

Before you disclose a vulnerability, spend one minute checking what is already public.

predisclose looks at public data only and answers four questions about an open-source project:

  1. Public record: is there already a public advisory that looks like your finding? (OSV, GitHub Advisory Database)
  2. Public fix: has the affected code changed since the version you tested?
  3. Recent activity: has this area had advisories recently? Busy areas get more parallel reports.
  4. Where to report: what channel does the project ask for? (SECURITY.md, GitHub private vulnerability reporting, security.txt)

It also keeps a local ledger of the reports you have sent, with deadlines and an export for your portfolio that hides anything not yet public.

$ predisclose check --pkg pypi:jinja2 --version 2.10 --cwe CWE-693 --file sandbox.py

Check            Result  Summary
Public record    CHECK   6 public advisories affect PyPI jinja2 2.10; 0 strong and 2 medium matches
Public fix       CHECK   33 commits changed sandbox.py since 2.10 (2017-11-08); 2 look security-related
                         (1 linked to public advisories)
Recent activity  none    No advisories published in the last 365 days.
Where to report  FOUND   Follow SECURITY.md: GitHub private vulnerability reporting ->
                         https://github.com/pallets/jinja/security/advisories/new

Public record
  medium GHSA-q2x7-8rv6-6q7h 2024-12-23  Jinja has a sandbox breakout through indirect reference
         to format method (same CWE: CWE-693)
  ...

Note what happened there: the file moved from jinja2/ to src/jinja2/ after 2.10 and is still followed, and the reporting channel came from the organization-wide policy in pallets/.github.

What it does not do

  • It does not say a finding is new. Reports sent privately by other people are invisible to everyone except the maintainers. "No public record" is the strongest thing any tool can honestly say.
  • It does not reproduce, scan, or test anything. It only reads public metadata.
  • It does not send reports for you or post anything anywhere.
  • It does not send your description of the issue anywhere. Only the package name, version, repository, and the file paths you pass leave your machine; CWE ids, function names and keywords are matched locally. --show-queries lists every request.

Install

pipx install predisclose      # or: uv tool install predisclose

Python 3.11 or newer. A GitHub token is optional but recommended: unauthenticated GitHub API calls are limited to 60 per hour.

export GITHUB_TOKEN=$(gh auth token)   # any token works; no scopes are needed for public data

Use

# Package on a registry (PyPI, npm, crates.io, Go, Maven, NuGet, RubyGems, Packagist, Pub, Hex)
predisclose check --pkg npm:express --version 4.17.1 --cwe CWE-601

# A GitHub repository that is not on a registry (version = tag or commit)
predisclose check --repo owner/name --version v1.2.0 --file src/parser.c --function parse_header

# Only the reporting channel
predisclose route owner/name

# From a file (handy for agents and scripts)
predisclose check --from finding.toml --json

finding.toml:

package = "pypi:jinja2"
version = "2.10"
cwe = ["CWE-693"]
files = ["src/jinja2/sandbox.py"]
functions = ["SandboxedEnvironment"]
notes = "free text for yourself; never sent anywhere"

Useful flags: --show-queries (print every request that was sent), --dry-run (print the first requests and send nothing), --markdown report.md, --only known,route, --no-cache.

Ledger

predisclose ledger add owner/name "Path traversal in upload handler" --channel github-pvr
predisclose ledger update 1 --status published --ids CVE-2026-12345 --url https://github.com/advisories/GHSA-xxxx
predisclose ledger due                 # deadlines in the next 14 days
predisclose ledger export -o reports.md

The ledger lives in ~/.local/share/predisclose/ledger.sqlite and never leaves your machine. export keeps full details only for reports marked public. Everything else becomes "Undisclosed report" with the month it was sent.

How matching works

Every advisory that affects the target is scored against your hints. The rules are deterministic, so the same input always gives the same answer:

Level When
strong same CWE and same file or function, or same file and same function
medium same CWE, or same file, or same function, or a keyword match
weak affects this version, no other overlap

Each match lists its reasons and a link, so you can judge it yourself. More in docs/how-it-works.md.

Validation

scripts/eval_recall.py samples reviewed GitHub advisories in seven ecosystems (PyPI, npm, crates.io, Go, Maven, RubyGems, Packagist). For each one it checks a version inside the vulnerable range with the advisory's CWE, and the first patched version as a control.

Run Recall (advisory found at medium or above) Control (not listed for the patched version)
2026-11-19, 32 advisories 32 / 32 32 / 32

The reporting-channel parser was checked by hand against the policies of curl, express, hyper, Jinja, Django, Node.js, OpenSSL, Go, Rails and Next.js (all ten match), and its test suite holds our own examples of each layout it has to handle. scripts/eval_routes.py repeats that check.

Both scripts run every week in the live-check workflow, which opens an issue when either check fails.

For AI agents

skills/predisclose/SKILL.md is a ready-made skill for Claude Code, Codex, and similar agents. It tells them to call predisclose check --json, never to describe a finding as new, and never to send finding details to other services.

Privacy and limitations

See docs/privacy.md and docs/limitations.md.

License

Apache-2.0

Metadata

Release files for predisclose 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for predisclose 0.1.2
File Size Uploaded Provenance Actions
predisclose-0.1.2.tar.gz 62.0 kB With provenance Details for predisclose-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for predisclose 0.1.2
File Interpreter ABI Platform Actions
predisclose-0.1.2-py3-none-any.whl Python 3 none any Details for predisclose-0.1.2-py3-none-any.whl

Total release size: 108.4 kB

Release files / predisclose-0.1.2.tar.gz

Download URL predisclose-0.1.2.tar.gz
Size 62.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4f8593a3805fdcf7c220ef141528b025752250cc53c6f3fb972e130b5af417b2
BLAKE2b-256 checksum
How to use checksums
5b347c3ab4cc4b86ed4d8273a2e07376e791fd6845d97b135cfd35a76fd9bc3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Release files / predisclose-0.1.2-py3-none-any.whl

Download URL predisclose-0.1.2-py3-none-any.whl
Size 46.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd22fb66856cca6929eb9728ad54baaaebc9febbf96d2414f3da2fac7db8dbe0
BLAKE2b-256 checksum
How to use checksums
93f5b2ca47b3d775c8cc39894bd77b748e7e7612cedc0f731d21176c073481df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

Security for predisclose 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for predisclose-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page