# Automated CVE fixes and backports, proven by tests

> An AI-written CVE fix counts only when the project's own tests pass. Results on 431 fix and backport tasks: 423 fixed, 309 with no model call, none failing.

Updated 2026-11-29.

A patch that compiles is not a fix. A fix closes the vulnerability and still passes the project's tests. Reeflex reuses fixes that already met that bar and checks them again in your code.

## How a proven fix reaches your code

When a security fix has passed a project's tests anywhere on the network, Reeflex keeps it with the test that proved it. When your agent meets the same bug in another release, another branch or a copy of the library inside your project, Reeflex applies the fix with your agent's own edit tool. Then your tests run. If they fail, the change is undone before your model sees anything.

## Results on five fix benchmarks

Each task is scored by running the project's own test suite. A fix counts only if the tests pass. Cost is what the model calls cost at list price, compared with Opus alone.

| Benchmark | Opus alone | Haiku alone | Haiku with Reeflex | Fixed by the network | Cost vs Opus |
| --- | --- | --- | --- | --- | --- |
| 124 Django CVE backports | 124 | 120 | 122 | 111 (90%) | 0.52% |
| 72 fixes from the advisory text only | 71 | 72 | 72 | 65 (90%) | 0.78% |
| 44 backports in six Python projects | 44 | 44 | 44 | 40 (91%) | 0.6% |
| 68 backports in C: curl, git, expat, libarchive | 67 | 67 | 68 | 50 (74%) | 4.5% |
| 123 first-ever CVE fixes in 40 projects | 117 | 114 | 117 | 43 (35%) | 4.4% |

## What the numbers show

- 431 tasks, 423 fixed by Haiku through Reeflex, the same as Opus.
- 309 fixes came from the network with no model call, and none of them failed the project's tests.
- Ahead of Opus on two benchmarks, level on two, and two behind on the Django backports. One of those two tasks has a timing test that passes 1 run in 10 on the maintainers' own fix.
- Backports are where the network helps most: 90% and 91% fixed with no model on the Python sets.

## Limits

Where Opus is already at or near 100%, a lead over it cannot show. On first-ever fixes the network can only help when the bug has another published version. 55 of the 123 did, and the network fixed 43.

## Known fixes missing from your dependencies

The same knowledge works without a model. Our check lists the known security fixes missing from a directory, including copies of libraries a package carries inside it, in about 5 seconds for one package. In the latest PyPI release of ytsaurus-client it found a copy of urllib3 1.26.16 without the fix for CVE-2023-43804. The fix's own tests fail on that copy and pass with the fix in place.

Run over the 1,500 most-downloaded PyPI packages, it found one with a known fix missing (PyPDF2 3.0.1, a retired package), nine leads, and 1,469 clean. See also [finding known vulnerabilities with a failing test](https://reeflex.si/guides/known-vulnerabilities/).

## Questions

### Can an AI agent backport security fixes to older releases?

Yes. On 124 Django CVE backports, 44 backports in six Python projects and 68 backports in C, Claude Haiku through Reeflex passed the projects' tests on 122, 44 and 68. Most of those came from fixes already proven on the network, with no model call.

### How do you know an automated fix is correct?

The project's own test suite decides. Reeflex reruns your tests after applying a fix and undoes it if they fail.

### Does Reeflex work on C code?

On 68 backports in curl, git, expat and libarchive, Haiku through Reeflex fixed all 68 and Opus 67. The network fixed 50 of them on its own.

## Related

- [Finding known vulnerabilities, each proven by a failing test](https://reeflex.si/guides/known-vulnerabilities/)
- [What is a verified security outcome?](https://reeflex.si/guides/verified-security-outcome/)
- [How to cut model spend on an AI security agent](https://reeflex.si/guides/security-agent-cost/)

Page: https://reeflex.si/guides/cve-fixes/
