GitHub AppInstall it on your GitHub organisation and pick the repos. Works with npm, pnpm, Yarn and Bun projects, Go modules and Python.Node, Go and Python

Fix the CVEs your code actually calls.

PatchBat checks which vulnerable functions your code really reaches, then opens a pull request with a test that fails before the fix and passes after.

Then $59 a month per team. Bring your own AI key.The agent that writes tests and fixes runs on your Anthropic or OpenAI key. You pay the provider directly, with nothing added on top.

Less noise

Your scanner lists every CVE in the lockfile. Most never touch your code.

PatchBat traces each advisory to the function it affects and checks whether your code calls it. You get fix PRs for the ones that matter and a quiet list for the rest.

acme/storefrontExample
  • lodash 4.17.11CVE-2019-10744exploit verifiedOur test sent the attack through PATCH /api/users/me/preferences and it worked. The fix PR includes that test.PR #142
  • semver 7.5.1CVE-2022-25883reachableYour import route passes user input to the vulnerable range parser. A timing attack is too flaky to test, so the PR says exactly that.PR #143
  • axios 1.5.1CVE-2023-45857no call foundThe issue is in browser XSRF handling. This repo only uses axios on the server, so nothing reaches it. It goes in the weekly bump, not a PR of its own.Weekly bump
  • minimist 1.2.5CVE-2021-44906dev tools onlyOnly pulled in by build tooling. It never ships to your users, so it gets no fix PR.Skipped
  • path-to-regexp 0.1.7CVE-2024-45296not checked yetPicked up on the last advisory sync. The call trace runs before any fix PR is opened.Tracing

How it works

Three steps, and only the first one is yours.

  1. 1

    Install the GitHub App

    Pick the repos. PatchBat reads your lockfiles and keeps watching the advisory feeds.

  2. 2

    It traces the call path

    For every advisory in your production dependencies, it follows your code to the vulnerable function, or proves it never gets there.

  3. 3

    You review a PR with proof

    The fix, the test that shows it works, and the call path. If your CI disagrees, the agent repairs the PR.

Proof, not promises

Every fix PR shows its work.

The headline says what an attacker could do, in plain words. Below it: how the attack reaches your code, and a test run on both branches.

  • Red, then greenThe attack test fails on your main branch and passes on the fix branch. Our runner produces that result, not the AI's word.
  • Revert checkWe undo only the dependency change and confirm the test fails again, so the test proves this fix and nothing else.
  • Honest labelsA PR is only called exploit verified when the attack test exists and passed. Otherwise it says reachable and explains what wasn't proven.
  • Tests stayThe new tests are committed with the fix, so the same hole can't quietly come back.
Open#142security: exploit-verified

Any user can make themselves admin via /api/preferences: fixed, exploit test included

How it reaches your code

PATCH /api/users/me/preferences
  → updatePreferences()      src/routes/users.ts:88
  → _.defaultsDeep(…)        src/routes/users.ts:94
  → defaultsDeep in lodash@4.17.11

Proof

TestmainThis branch
Rejects the pollution payload (attack)✗ vulnerable✓ blocked
Merges defaults normally (normal use)✓✓
Your test suite (142 tests)✓✓
- "lodash": "4.17.11"+ "lodash": "4.17.21"
Example values, for showing the format.

The smallest fix that works

It climbs the ladder one rung at a time, and stops at the first one that holds.

  1. 1Bump the packageA patch or minor update to the fixed version.
  2. 2Bump its parentWhen the bad version comes in through another package.
  3. 3Pin an overrideForces the fixed version when the parent hasn't caught up.
  4. 4Route around itNo fix upstream yet: change your code to stop using the vulnerable part.

It never edits the library's own code.

Built for a security tool's standards

We sell CVE fixes, so we keep our own house small.

  • Your secrets never reach the agent. Environment values marked secret stay out of the sandbox. Config values go in, secrets don't.
  • One sandbox per job. Tests run isolated, without credentials and without network access.
  • Your AI key, your bill. Anthropic or OpenAI. You see every call on your own provider dashboard.
  • Few dependencies. Every package we ship is one more thing that could have a CVE, so each one goes through review.

Pricing

One plan. The whole team.

$59per month, per team

  • First 3 fix PRs free
  • Every repo in your GitHub organisation
  • Your whole team, invited by email
  • Node, Go and Python
  • Your own Anthropic or OpenAI keyModel usage is billed by your provider at their prices. PatchBat adds nothing on top.
Start free

FAQ

Questions

Which package managers do you support?

npm, pnpm, Yarn 1, Yarn 2 and later (including Plug'n'Play) and Bun for Node. Go modules. Python projects.

Why do I need my own AI key?

The agent that writes tests and fixes runs on your Anthropic or OpenAI account. You pay the provider directly at their prices, and you can see and cap the usage yourself.

What happens if the fix breaks my CI?

PatchBat watches the checks on its PR. If they fail, the agent repairs the PR and tells you why our sandbox didn't catch it first.

Do you scan dev dependencies?

No. Only production dependencies get fix PRs, because those are what ship to your users.

Will it change my code?

Only when there's no fixed version to move to. Then the PR changes your code to stop using the vulnerable part, and says so in the title. It never patches a library's own code.

What does the bat have to do with it?

Bats eat bugs. Lots of them. Every night.

Let the bat go hunting.

Install on GitHub and get your first 3 fix PRs free.

Start free