The AI's Security Fix Sat Unshipped for 15 Days. What Must Pass Before a Finding Closes?
An AI-proposed security fix can fail after it looks right: it can leave the weakness reachable, break the feature, or never reach production. Each failure needs its own check before a finding closes, and where the second check cannot be proven, keeping AI fixes out is a defensible choice.

Summary: An AI-proposed security fix can fail after it looks right in three separate places: it can leave the weakness reachable, break the feature, or never reach production. Each failure needs its own check before the finding is closed. Where a team cannot test the second, keeping AI fixes out of that code is a defensible choice.
Watch the full analysis (12:08)
Watch the full analysis (12:08) on YouTube · Watch the Short (0:49)
On 9 September 2026, an AI coding agent at Streamrise was auditing customer compensation in the company’s backend when it noticed a problem it had not been asked to find. Two customer API endpoints, order history and balance history, built their SQL by pasting request parameters into the query string, and both were reachable with an ordinary customer login. The weakness was SQL injection, CWE-89. “The agent was not looking for security bugs,” Richard Meadows, Head of Content at Streamrise, said in a written response to PSEEDR.
The fix was small. The project already had safe helpers for quoting values and checking sort keys, used in a neighbouring file, and the agent applied those instead of writing its own. Before accepting the change, the team tested what Meadows calls “the one thing most likely to break: the sort parameter.” Streamrise’s panel only sends real column names, so the stricter check left sorting unchanged. A search of the request logs for typical attack strings on those paths found none, and Meadows is precise about what that shows: “That is not proof of no attack, because our log index strips special characters, and we wrote it down that way.”
Then the account turns. “The uncomfortable part: the code was fixed on 9 September but reached production on 24 September, 15 days later. It was waiting in an uncommitted working copy.” It shipped together with about 25 similar fixes from a wider audit that followed. For those 15 days the corrected code existed, while the endpoints customers could reach still ran the old code. Meadows says the dates and counts come from the company’s commit history; PSEEDR has not verified them.
Streamrise’s failure sits in one of three separate places where an AI-proposed security fix can fail after it looks right. The fix can block the reported input and leave the weakness reachable another way. It can close the weakness and break what the feature has to do. Or it can be correct and not be running where the attack would happen. Each failure needs its own check, with its own evidence and owner, and the finding should stay open until all three have passed. Valimail, an email-authentication company, has not allowed AI fixes in its production codebase at all. PSEEDR reads that policy as a defensible gate for code where the second check cannot yet be proven.
This rule is PSEEDR’s synthesis of written accounts from three organizations, a controlled study by 1Password and what vendors say their own tools check. None of these sources measures how often the checks catch failures. The cases also come from different teams, so none shows what one team would find with all three checks in place.
Vendors and benchmarks now grade fixes. They stop before production.
The question is timely because vendors now present security patching as a capability ready for use. On 10 November 2026, Google made Gemini 4 Carbon available to developers and enterprises. When Carbon is accessed through the Fairwind Program for cybersecurity defenders, Google says, it leads on a patching benchmark, CWE-bench v1, and generates “verified root-cause patches.” Google also describes Project Fortify, its autonomous system spanning scanning, triage and remediation. The post gives figures for scanning and triage on an internal benchmark. It gives none for whether remediations were correct, broke anything or were deployed.
The same day, Google DeepMind introduced AlphaProof Code, a framework in which AI agents proved security properties of the code behind the Signal protocol. Human experts reviewed every formal specification, and agents produced the proofs in Lean. DeepMind describes formal verification as the highest standard of security assurance. Two limits matter here: the work verified existing code rather than an AI-proposed fix, and a proof covers what its specification says, no more.
Benchmarks have moved in the same direction. On 3 November, Collinear AI and Hugging Face published CWE-bench v2, 100 public tasks across 91 weakness classes. Each task asks an agent to fix a weakness in a real repository “without breaking existing functionality.” The authors say they checked, task by task, that the original functionality still works with the fix and that the verifiers reject a memorized upstream patch. Even the top-scoring model fails 19% of the tasks on every attempt. Collinear, which also offers evaluation on a held-out set, has a commercial interest in the benchmark.
Vendor tools describe similar gates. In an earlier post, from 6 October 2025, Google DeepMind said its CodeMender agent surfaces only patches that pass automatic validation for root cause, functional correctness, absence of regressions and style. Human researchers then review every patch before it goes upstream.
Read together, these sources address the first two checks at most, and only for what each verifier, test or specification encodes. None of them reports whether a fix is running in production. Submitting a patch upstream is not the same as users running it, and a benchmark container is not production. That leaves the reader’s question open: which checks does your own process require before a finding closes?
Check 1: the cause is gone, not only the reported input
A fix that makes the reported test pass shows that one input no longer works. That is not the same as showing that the weakness is closed.
1Password’s research, published on 6 August 2026 and updated on 26 October, shows the gap under controlled conditions. Researchers asked two models, ChatGPT-5.5 and Opus 4.8 at their default effort settings, to patch six recently disclosed vulnerabilities whose complete fixes needed changes across multiple files, functions or code paths. They excluded 400 of 6,480 attempts because the model appeared to seek out the existing upstream patch, and graded the remaining 6,080. The prompts deliberately varied in accuracy: some carried vetted, correct guidance about the root cause and fix, and some carried wrong guidance. Averaged across all of them, 26.0% of patches fixed the vulnerability without changing application behavior or adding a new vulnerability. Another 20.1% fixed it but changed unrelated behavior. The remaining 53.9% left it unresolved, added a new vulnerability, or both. With only correct guidance, the clean-fix share rose to 31%; with wrong guidance, it fell to 15%.
The finding most relevant to the first check concerns the patches that counted as fixes. More than a third of them, 1Password reports, were fragile: they cut off the path to the vulnerable operation instead of removing the operation. In a Spring AI case, both models often escaped selected characters in user input to keep malicious strings away from an unsafe expression evaluator. A correct fix would replace the evaluator with a restricted one. A patch of the first kind can block the proof-of-concept and still leave the unsafe operation reachable by other inputs. Help Net Security’s report on the study adds that, on a Chromium case, a harness built to loop until the test stopped failing did worst: its test never exercised the case that the second half of the full fix protects against, so an incomplete patch passed and the agent stopped.
The study’s conditions belong next to its numbers. The six cases were chosen because they were recently disclosed and needed complex, multi-file fixes. The study covered two model versions at one moment. After publication, 1Password received feedback that its constraints may have limited what agentic tools could produce, and it presents whether stronger verification changes the outcomes as a question for further work. The results are not a production rate, and they do not show whether AI fixes are usually complete or usually incomplete. They do show that passing a demonstrated exploit and closing a weakness can come apart. 1Password puts it plainly: “A generated patch is a candidate, not proof that the vulnerability is fixed.” GitHub’s documentation for Copilot Autofix lists the same risk among its limitations: misleading fixes that fail to remediate the underlying vulnerability, and fixes that “only partially address the security vulnerability or only partially preserve intended code functionality.”
The first check therefore needs evidence about the cause, not only about the reproducer. Three kinds of evidence fit. The first is tests with inputs other than the one in the report. The second is a look at the construct itself: is the unsafe operation gone, or replaced by the project’s own safe mechanism? Meadows’s third rule after the incident targets this directly: “Make the agent use the project’s existing safe helpers rather than inventing new ones.” PSEEDR’s reading of why that helps: an existing helper is already in use elsewhere in the codebase, while a new one is one more construct a reviewer has to check. The third is a search for the same pattern elsewhere. Meadows’s second rule reads: “When an agent finds one injection, audit the whole codebase for the same pattern. Here, one finding led to about 25 more.”
The Streamrise case also shows why reviewers should know which part of a fix is most likely to change behavior. In SQL, values can be passed as parameters, but structural parts of a query, such as column names and sort direction, cannot. The OWASP SQL Injection Prevention Cheat Sheet recommends mapping those choices to a small set of values the application owns and rejecting anything else. In a fix like Streamrise’s, that strict sort-key check is a likely place for a correct security fix to refuse something a real client sends, and Meadows’s team judged it the one thing most likely to break. Testing it answers a question that already belongs to the second check.
Check 2: the feature still accepts its real data
Kuldeep Kundal, Founder & CEO of CISIN, described the second failure in a written response to PSEEDR. “In a recent enterprise project, we tasked an AI agent with remediating an XSS vulnerability in a complex data-entry module.” By Kundal’s account, the fix removed the risk it targeted and still did damage: “While the model successfully neutralized the script injection risk with a standard sanitization routine, the fix was functionally destructive. Integration testing revealed that the sanitization was far too aggressive, stripping specialized characters essential to the application’s core data processing.”
Kundal’s diagnosis of the general pattern is that AI models often put syntax-level compliance ahead of business logic, “leading to security patches that satisfy scanners while inadvertently breaking application utility.” In this case the security goal was met, and integration testing, a different kind of check, showed what the feature lost. Kundal also contrasts what the team expected with what reviewers saw: “Although benchmark scores promised a high success rate, our internal reviewers found that the AI lacked any understanding of downstream impacts on UI components.” Kundal does not name the benchmark.
The cost moved rather than disappeared. “We saw our security backlog shrink, but our QA backlog spiked with regression bugs caused by automated fixes that lacked the nuance of a developer familiar with the user journey.” Kundal’s account gives no date, numbers or project name. It does not say which integration test caught the over-sanitization or whether any broken fix reached users.
How can a security fix break a data-entry feature? One way, and this is PSEEDR’s explanation rather than CISIN’s diagnosis, is that the fix removes characters from the data on the way in, where the rest of the module needs them, instead of encoding the data where it is displayed. The OWASP Cross Site Scripting Prevention Cheat Sheet says the right protection depends on how the data is used. It recommends context-specific output encoding when data is inserted into a context that interprets syntax, says input validation does not replace that protection, and warns that the wrong encoding method “may introduce weaknesses or harm the functionality.” A sanitizer applied at input can satisfy a check for script injection while changing every record that contains the characters it strips.
A related outcome appears in 1Password’s 20.1% category, under the study’s conditions: patches that closed the vulnerability but changed unrelated behavior, including rejecting valid inputs along with malicious ones. GitHub’s documentation describes the general risk as fixes that are syntactically valid but change the program’s meaning. It recommends having CI testing in place before enabling Autofix, so that functional requirements are verified after fixes are applied.
CISIN’s response was organizational as well as technical. “We now treat AI-generated fixes strictly as draft suggestions rather than merge-ready code,” Kundal said. The team set up a dual-gate review in which “one gate validates the security fix, while a second gate, managed by a product lead, ensures the business logic remains intact.” It also expanded its automated tests “to specifically flag the over-sanitization patterns common in AI outputs.”
The choice of owner matters. A security reviewer can confirm that the injection is closed. Whether a module still needs a given character, a sort key or an unusual input format is knowledge held by whoever owns the feature, and Kundal’s product-lead gate brings that knowledge into the review. The second check therefore needs that owner’s sign-off and tests built from the data and flows the feature actually handles, not only the tests that came with the finding.
Check 3: the fix is running where the attack would happen
Return to Streamrise. By Meadows’s account, the team attended to parts of the first two checks: the agent used the project’s helpers, and the team tested the parameter most likely to break. What failed was a step that none of those checks can observe.
Code review reads a diff. Tests run against a checkout. A benchmark runs in its own environment. None of them knows whether the change is on the servers that customers reach. Even scanner status describes code, not deployments. GitHub’s guide to resolving code scanning alerts notes that an alert can be fixed in one branch and open in another, and that the alert page shows the default branch’s status. At Streamrise, the fix had not even been committed.
That is why the third check is a separate gate rather than a detail of release management. An earlier PSEEDR article examined how to check what an AI agent has launched. An unshipped security fix poses a narrower problem: anyone who reads the code sees the weakness closed, while customers can still reach the open one. The team’s belief and the production state disagree, and nothing in code review or testing reports the difference.
Meadows’s first rule after the incident addresses exactly that gap: “A security fix counts as done when it is live and checked, not when the code is written.” The account does not say what “live and checked” consisted of for these endpoints, what review the agent’s fix received before merge, why the working copy stayed uncommitted, or whether the roughly 25 follow-on fixes were also written by the agent. Those details would change how much the case says about review practice. They do not change the point about deployment.
What the third check contains is each team’s choice. PSEEDR’s minimum would be evidence that the deployed version includes the change, and a repeat of the finding’s own verification against the running service rather than against the branch. Until that evidence exists, the finding stays open. Closing it at merge records the team’s intention, not the production state. A passed third check also has a limit: it says nothing about what happened before the fix arrived. Streamrise’s log search shows that limit in practice: the team recorded it as inconclusive because its log index strips special characters.
Where a team may keep AI fixes out
Al Iverson, who works in industry relations at Valimail, a DigiCert business unit, described a decision rather than an incident. “We have not allowed an AI model or agent to propose or commit fixes in our production codebase,” Iverson said in a written response to PSEEDR. Valimail works on email authentication, including DMARC, SPF, DKIM and BIMI, and Iverson states the reason in terms of that domain: “we judged the risk of subtle regressions in identity and deliverability to outweigh potential backlog gains.”
Iverson’s response also sets benchmark results against what reviewers see. Kundal’s does too, but Iverson names the kinds of change involved: “Our reviewers consistently find that small changes around canonicalization, policy evaluation order, or header parsing can pass generic benchmarks yet break real-world flows across multiple third-party senders and complex domain setups.”
Why would such changes be hard to test? The explanation that follows is PSEEDR’s, not Iverson’s. In email authentication, whether a message passes depends partly on what other parties’ systems did to it in transit. The DKIM standard, RFC 6376, defines two canonicalization algorithms that prepare a message for signing and verification. The “simple” algorithm tolerates almost no change to the message. The “relaxed” algorithm tolerates common changes, such as replaced whitespace and rewrapped header lines. The signer chooses an algorithm, separately for header and body, and every verifier must implement both. Whether a change to a verifier is safe therefore depends on the range of signing choices and in-transit changes it will meet. A small change to how it canonicalizes or parses headers can pass every test built from a team’s own fixtures and still fail for some senders’ mail. A generic benchmark has the same limit: CWE-bench v2, for example, grades the behaviors that each task’s verifier was written to check.
In the terms of this article, that makes Valimail’s policy a gate decision. The second check can only be passed with tests that contain the other parties’ behavior. If a team cannot build that evidence, it cannot pass the second check for an AI fix in that area. Keeping AI fixes out until it can is then a defensible choice, not a rejection of tools. This inference is PSEEDR’s.
Its limits are specific. Iverson describes a policy and its reasoning, with no dates and no incident. The response does not describe an internal evaluation behind the statement about benchmarks, and whether the policy still holds beyond the response is unknown. The reasoning also does not extend automatically to other code that a team considers critical. It applies where the evidence the second check needs lives outside the team’s tests.
What to require before closing the finding
The rule below is PSEEDR’s synthesis of these sources. It is a set of decisions, not a measured method, and no source here gives a rate at which these checks catch failures. The product-owner gate in check 2 follows Kundal’s reported practice; the other sign-offs are PSEEDR’s recommendation.
| Check | Evidence required before the finding closes | Who signs | What it does not show |
|---|---|---|---|
| 1. The weakness is closed at its cause | Tests with inputs beyond the reproducer; the unsafe construct removed or replaced by the project’s existing safe mechanism; a search for the same pattern elsewhere in the codebase | Security reviewer | Whether the feature still does its job |
| 2. The feature still works | Tests built from the data and flows the feature really handles; sign-off from the feature’s owner | Product or feature owner | Behavior outside what the tests contain; whether the fix is deployed |
| 3. The fix is running and checked | The deployed version includes the change; the finding’s verification repeated against the running service | Whoever owns the release and closes the finding | Whether the weakness was exploited before the fix arrived |
| Exclusion | If check 2 depends on other parties’ behavior that the team’s tests do not contain, AI fixes are not proposed or committed in that area | Engineering and security leads | When the area can be reopened; that depends on evidence the team does not yet have |
The roles differ because each failure is hard to see from the other positions. A security reviewer who confirms that the cause is gone has no view of which characters a data-entry module needs. A product lead who confirms that the module works has no view of which branch is deployed. A release that ships on time can still ship a fix that blocks only the reported input. On a small team one person may hold more than one of these roles; the checks still need separate evidence, because passing one says nothing about the others.
The three accounts support this structure without proving it. They come from different organizations, each describes one failure point or decision, and they are the contributors’ own written reports, which PSEEDR did not reproduce. 1Password’s study shows the first failure under controlled conditions, not its frequency in production. The vendor posts describe what their tools check and are not evidence about any of the cases here.
One question remains open for teams in Valimail’s position. What evidence would make AI-proposed fixes acceptable in an identity or protocol-parsing area: a corpus of real third-party message flows, a differential test that compares a proposed change against the current parser on that corpus, or something else? And who would keep that corpus current as senders change their systems?
Reporting note: The Streamrise, CISIN and Valimail material comes from written responses to PSEEDR. Dates and counts in the Streamrise case are from the company’s commit history, as Meadows states. Meadows discloses that Streamrise uses Claude models from Anthropic as a paying customer and has no other commercial relationship with any AI vendor; the account does not say which model the agent used. Iverson states that there is no paid relationship with PSEEDR. Kundal’s response does not state any commercial relationship. Vendor, benchmark and standards documents are cited for what each says it does or checks.
Sources
- https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-carbon-now-available/
- https://deepmind.google/blog/introducing-alphaproof-code/
- https://huggingface.co/blog/cwe-bench
- https://deepmind.google/blog/introducing-codemender-an-ai-agent-for-code-security/
- https://1password.com/blog/why-ai-generated-patches-still-require-human-review
- https://www.helpnetsecurity.com/2026/08/06/1password-ai-generated-vulnerability-patches/
- https://docs.github.com/en/code-security/responsible-use/security-and-quality-ai-features
- https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet.html
- https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html
- https://docs.github.com/en/code-security/how-tos/manage-security-alerts/manage-code-scanning-alerts/resolve-alerts
- https://www.rfc-editor.org/rfc/rfc6376.txt