claudeers.
// Security & Compliance

package-doctor

Scan Python dependencies for exploited CVEs and abandoned packages that handle untrusted input, ranked by CISA KEV and EPSS. Runs in CI and as a Claude Code…

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up package-doctor (pip project) into my current project.
Found on https://claudeers.com/package-doctor
Repo: https://github.com/binuka200/package-doctor
Homepage/docs: https://pypi.org/project/package-doctor/
Detected install method: pip → pip install package-doctor
Category: security. Platforms: cli.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
unknown; community-verified: false. Confirm the source before running anything.
// or install directly (pip)
pip install package-doctor
// or clone
git clone https://github.com/binuka200/package-doctor

// compatibility

Platformscli
Operating systems—
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

package-doctor

Tells you which Python dependencies to fix first: the ones being exploited, and the ones nobody is left to patch. Then stops your coding agent from adding another.

package-doctor scan of a ten-dependency project: pillow and litellm under FIX TODAY for CVEs on CISA's known-exploited list; bleach to replace, archived and marked Inactive; nltk to mitigate, with one advisory no release fixes; requests, pyjwt, flask and jinja2 to upgrade; python-dateutil quiet. Seven of ten fail the build.

A demo project with deliberately old pins, scanned on 16 September 2026. Advisory and exploitation data change daily, so the same pins will not read the same later.

In late August 2026, Anthropic's coordinated disclosure programme reported 2,300 vulnerabilities across 392 open source projects. 421 had been patched upstream. Discovery is becoming automated; remediation still needs a human. So the question worth asking about a dependency is not "is it healthy?" It is:

If a vulnerability lands in this package tomorrow, am I exposed, and is anyone home to fix it?

What it does

  • Two axes, not one. A package is escalated only when it sits at a trust boundary - it parses, decodes or authenticates data an attacker can influence - and there is proof nobody is left to ship a fix. mock going quiet is not a finding; an archived auth library is. The boundary call comes from a human-reviewed map of about 1,500 packages, each with its reason.
  • Exploited first. Advisories that affect your pinned version are ranked by CISA's known-exploited list and FIRST EPSS, so hundreds of advisories become the handful worth reading today.
  • Reachability. Each finding says whether, and where, your own code imports the package.
  • A guardrail for coding agents. As a Claude Code, Codex or Gemini CLI hook it checks every install an agent proposes, and blocks invented names, packages published in the last 30 days, and vulnerable or abandoned libraries at a trust boundary - with the reason, so the agent picks something else.

Findings are grouped by what to do about them:

SectionMeansFails the build by default
exploiteda CVE on CISA's known-exploited list affects your versionyes
replaceproof nobody is home - archived or marked Inactive - or an unfixable advisory in a project that has gone quietat a boundary
upgradeadvisories affect your version, and a newer release is clear of themat a boundary
mitigatean advisory with no fix anywhere, in a project that is still activeno
quietgone quiet, nothing actually wrongno
uncheckednot enough data to judgeno

Install

pip install package-doctor

Quick start

package-doctor scan                            # everything your project depends on
package-doctor explain pillow                  # the evidence behind one row
package-doctor check requests pillow==10.0.0   # before adding a dependency

It reads uv.lock, poetry.lock, Pipfile.lock, pyproject.toml, Pipfile, setup.cfg, setup.py and requirements*.txt. Without a lockfile it assumes the newest release a fresh install would get, and marks that version ?.

In CI, one line scans the checkout, fails the job on what needs work at a trust boundary, and writes the report to the job summary:

- uses: binuka200/[email protected]

It also runs as a pre-commit hook, writes SARIF for code scanning, and lets you accept a known risk on the record, with a reason and an expiry date.

As a Claude Code hook, add this to .claude/settings.json:

{
  "hooks": {
    "PreToolUse": [
      { "matcher": "Bash",
        "hooks": [{ "type": "command", "command": "package-doctor hook claude-code", "timeout": 60 }] }
    ],
    "PostToolUse": [
      { "matcher": "Bash|Edit|Write|MultiEdit",
        "hooks": [{ "type": "command", "command": "package-doctor hook claude-code", "timeout": 60 }] }
    ]
  }
}

PreToolUse checks what an install names before it runs. PostToolUse checks what it pulled in with it, and names written straight into a dependency file. For Gemini CLI and Codex, use package-doctor hook gemini or package-doctor hook codex; the settings are in the guardrail docs.

How accurate is it?

Measured on 100 open source repositories and 18,138 packages, on 23 September 2026:

  • 8,260 of 8,261 pinned versions match OSV's own answer about which advisories affect them.
  • 0 vulnerabilities that pip-audit found and package-doctor missed, over 1,663 found by both (on the first 60 repositories).
  • 116,317 reported import sites checked against the source line: 116,283 match outright, and the other 34 are modules their distribution ships under another name, such as _pytest.
  • Every verdict's claim checked at its source: all 14 exploited CVEs are on CISA's list and no affected pin escaped; all 554 upgrade targets clear their advisories; 87 of 88 archived claims confirmed by GitHub.
  • 2,550 advisories affecting pinned versions, of which 34 are on CISA's list or above a 10% exploit probability.

The exposure map carries real signal too: among entries decided from what a package does, the ones marked exposed have security advisories 8.6× as often as the ones reviewed and cleared. The method, and its limits, are in accuracy.

Use it alongside pip-audit, not instead of it

pip-audit is the PyPA tool and is better at what it does: telling you, on every commit, which pinned versions have known CVEs. Most of what lands in fix today, upgrade and mitigate here, it would also find.

What it does not do is tell you which of those to fix first, which of them your code actually imports, or which of your dependencies has nobody left to ship a patch at all. That is this tool's job, and it is a different cadence — a quarterly maintenance review rather than a per-commit gate.

Documentation

Contributing

The most useful contribution isn't code — it's arguing with exposure.toml, about 1,500 judgement calls about which packages sit where an attacker can reach, each with a one-sentence reason. A verdict you think is wrong is worth the same: post it in Discussions with the output of package-doctor explain. See CONTRIBUTING.md to get started.

A note on tone

Being listed here is not an accusation. Most unmaintained packages are the work of volunteers who gave what they could, and "no releases since 2021, repository archived" is a fact that helps a user without indicting anyone. Findings are worded that way on purpose. If you find output that reads as a judgement on a maintainer rather than a description of risk, that is a bug — please report it.

Background

The reasoning behind this tool is set out in Rethinking Dependency Maintenance in the Age of AI Vulnerability Research.

License

MIT

// faq

What is package-doctor?

Scan Python dependencies for exploited CVEs and abandoned packages that handle untrusted input, ranked by CISA KEV and EPSS. Runs in CI and as a Claude Code hook.. It is open-source on GitHub.

Is package-doctor free to use?

package-doctor is open-source under the MIT license, so it is free to use.

What category does package-doctor belong to?

package-doctor is listed under security in the Claudeers registry of Claude-compatible tools.

6 views
★ 22 stars
unclaimed
updated 11 days ago

// embed badge

package-doctor on Claudeers
[![Claudeers](https://claudeers.com/api/badge/package-doctor.svg)](https://claudeers.com/package-doctor)

// retro hit counter

package-doctor hit counter
[![Hits](https://claudeers.com/api/counter/package-doctor.svg)](https://claudeers.com/package-doctor)

// reviews

// guestbook

0/500

// related in Security & Compliance

🔓

A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specia…

// securitymsitarzewski/⟨Shell⟩★ 157,838◷ MIT[ claude ]
🔓

π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.

// securityruvnet/⟨Rust⟩★ 96,123◷ MIT[ claude ]
🔓

Prowler is the world’s most widely used open-source cloud security platform that automates security and compliance across any cloud environment.

// securityprowler-cloud/⟨Python⟩★ 14,968◷ Apache-2.0[ claude ]
🔓

🐶 A curated list of Web Security materials and resources.

// securityqazbnm456/⟨Python⟩★ 13,840[ claude ]
→ see how package-doctor connects across the ecosystem