Google released Gemini 4 Neon on November 18, 2026, as the Gemini 4 model that balances depth and efficiency, and its launch post has a section on generating secure code from the start. We ran it under Cursor on the same real-world coding tasks we use for the Agent Security League. It scores 40.8% SecPass and 82.1% FuncPass, which puts it first on our leaderboard on security, 3.9 points ahead of Claude Code + Fable 5.1 and Claude Code + Fable 5.2 (36.9% each). It gets there with far more work than the combos behind it: a median of 13.2 minutes per task, two to seven times their tokens, and $742 for the run as billed through Cursor, the highest bill in the top five. Against Gemini 4 Argon, which we ran on the same harness in October, SecPass is 13.4 points higher for about the same time and money. We removed 28 solutions because the model recalled the upstream fix from training.
Key takeaways
- First on security. Cursor + Gemini 4 Neon reaches 40.8% SecPass, 3.9 points above Claude Code + Fable 5.1 and Claude Code + Fable 5.2 (36.9% each). Its 82.1% FuncPass is behind Fable 5.1 (86.6%).
- The slowest of the top five. Median time per task is 13.2 minutes, against 11.3 for GPT-6 Astra and 1.9 for Fable 5.2.
- The most expensive run of the top five. The run cost $742, against $672 for Fable 5.1 and $64 for GPT-6.1 Sol, two to seven times the tokens of the other four. That is what Cursor billed, its own per-token fee included; through another harness the same model could cost less.
- A large step up from Gemini 4 Argon. On the same Cursor harness, SecPass rises from 27.4% to 40.8% for slightly less time and money, with 28 confirmed cheating cases against 33.
- Hall-of-fame: one task only this combo solves securely. A cross-site scripting fix in the Open edX drag-and-drop XBlock, built differently from the upstream fix and reviewed manually.
Introduction
Claude Code + Fable 5.1 has led our leaderboard since September, joined at the same SecPass by Fable 5.2 in November. Google introduced Gemini 4 Neon on November 18, 2026, the week after Gemini 4 Carbon and Gemini 4 Hydrogen. The launch post places it between the two: Carbon for the hardest long-horizon projects, Hydrogen for fast everyday execution, and Neon to deliver "frontier-level intelligence with fast end-to-end task completion". One section of that post is about security, and it opens with a sentence we could have written ourselves: "As agentic coding scales, generating secure code from the start is critical."
We care about a narrow version of that: when an AI agent is given a coding task that unknowingly touches code that was historically part of a security fix, with no hint that security is involved and only instructions to follow best practices, does it produce a result that is also secure? Cursor + Gemini 4 Neon is the second Gemini 4 model we have put through that question on the Cursor harness, after Gemini 4 Argon in October, so against Argon the model is the main variable.
The short version: on our tasks Gemini 4 Neon produces more secure results than any combo on the current leaderboard, and it does so by working longer and using more tokens than the combos it passes. It is not the fast, low-cost option of our top five. It is the one that spends the most and gets the most.
This post gives the scores, sets Gemini 4 Neon's time, tokens and cost against the other four combos in the top five and then against Gemini 4 Argon, checks the main launch claims, and closes with the one task only this combo solved securely.
Benchmark recap
Skip if you know this already.
We measure combos — a harness (Claude Code, Cursor, Codex, Muse Code, …) plus a frontier model — on coding tasks inside real, complex projects. Each task involves code that was historically part of a security fix, but the combo is never told this; it is only asked to follow security best practices.
Each combo runs once per task, and we apply its patch in an isolated Docker environment. FuncPass means the patch passes the functional tests. SecPass means it also passes the hidden security tests introduced by the original vulnerability fix — so a secure result must first be functionally correct.
We also require the fix to come from the combo's own reasoning: recovering the known fix from git history, the web, a workspace copy, or training recall is treated as cheating. A multi-signal pipeline flags suspicious instances, and an LLM adjudicates each one. Confirmed cheating is removed from the score.
We exclude a small set of overly strict instances whose security tests demand implementation details that are exceptionally unlikely to be guessed independently. They remain as traps: a pass is a tripwire for deeper inspection rather than automatic credit.
Scores
Gemini 4 Neon is first on SecPass and level with GPT-6 Astra on FuncPass. The table sets it against the other four combos in the top five by SecPass, and against Gemini 4 Argon, its predecessor on the same harness.
Run cost is what each run was billed or reported on its own harness. For the two Cursor runs that includes Cursor's own per-token fee; the cost section below explains what that means for the comparison.
Google's launch post says that "Gemini 4 Neon produces more secure code than Carbon across all easy, medium, and hard challenges on AutoBaxBench, achieving state-of-the-art on the hard tier (76%)". That benchmark has the model write a new web backend from a specification, where our tasks are changes an agent makes inside existing projects, and we did not run Gemini 4 Carbon. On our tasks the claim holds in direction: no combo on the current leaderboard has a higher SecPass.
The secure passes are not a superset of anyone else's. Gemini 4 Neon and Fable 5.1 share 51 counted secure passes; 22 are Gemini 4 Neon's alone and 15 are Fable 5.1's alone. On 7 of those 15, Gemini 4 Neon's solution was removed as recalled, and 6 of the 7 had passed the security tests. On the other 8 its code worked and was not secure. Against GPT-6 Astra the split is 46 shared, 27 only for Gemini 4 Neon and 16 only for Astra.
With and without memorization
As in our recent posts, we show scores in two forms on the same denominator:
- Memorization kept: confirmed memorized solves still count as passes.
- Memorization removed: confirmed memorized solves are treated as cheating and do not count.
The numbers published on our leaderboard, and everywhere else in this post, are those with memorization removed.
With memorization kept, Gemini 4 Neon would not be first: Fable 5.2 would be, at 60.3% against 52.0%. Gemini 4 Neon leads the table we publish because more of what it secures is its own work. Memorization costs it 11.2 SecPass points, against 23.5 for Fable 5.2 and 14.5 for Gemini 4 Argon. It is still far from the two Codex runs, which had nothing removed.
Run notes
We ran Cursor's High variant of the model; every session reports it as Gemini 4 Neon 300K High. The Cursor CLI version was 2026.11.22, against 2026.10.14 for the Gemini 4 Argon run. The run used four parallel workers and took 27.6 hours of wall-clock time. Every prediction completed and there were no failed runs.
Time, tokens and cost against the rest of the top five
The slowest by median, with a short tail

Gemini 4 Neon has the highest median of the top five and almost no quick tasks: 2.5% finish within five minutes and 26% within ten. What it does not have is a long tail. 84% of tasks are done within twenty minutes and 97.5% within thirty, so its mean (14.3 minutes) stays close to its median, and on the mean GPT-6 Astra is the slower combo (16.8 minutes). Its tasks cluster in the middle: 58% take ten to twenty minutes and 95% take between five and thirty. Gemini 4 Argon, shown for reference, has a slightly higher median (14.0 minutes) and a longer tail: 21 of its tasks took thirty minutes or more, against 5 for Gemini 4 Neon.
Secure results did not take longer than the rest. The tasks that count as secure passes took a median of 12.4 minutes, against 13.2 over the whole run.
Two to seven times the tokens
Token totals for Gemini 4 Neon and the two Fable runs are those the sessions report (198 of the 200 sessions for Gemini 4 Neon). For the two Codex runs they are the quantities on our Azure invoices. The median output per task is from session reports in every row.
Gemini 4 Neon processed 2.3 times the tokens of Fable 5.1 and seven times those of Fable 5.2. About 94% of its input is cache reads (780M), the context re-read turn after turn in long sessions. The output is where it differs most. It wrote twice the output tokens of Fable 5.1 and six to nine times those of the other three. Per task the median is 62.1k output tokens, about ten times GPT-6.1 Sol's or Fable 5.2's.
The most expensive run of the top five
The costs are not measured the same way, and for Gemini 4 Neon the way matters. Its $742 is what the Cursor dashboard charged for the run. On team and enterprise plans such as ours, Cursor adds its own Token Rate of $0.25 per million tokens on top of the model's price, on input, output and cached tokens alike; on the 845M tokens of this run that comes to about $210. The Claude Code figures are the CLI's own reports at list price and the Codex figures are our Azure invoices, and neither carries a fee of that kind. So the $742 is the cost of Gemini 4 Neon through Cursor, not of the model as such. Through another harness, or at Google's list price alone, it could be lower; we have not run it elsewhere.
The launch post also says that at its high thinking level Neon has "roughly 50% to 80% lower cost per task than top competing frontier models" on two third-party benchmarks. That is not what we see through Cursor on our tasks, where it is the most expensive of the top five at $3.71 per task. The caveat above applies to this comparison too.
At $3 and $15 per million input and output tokens, Gemini 4 Neon's list price is well below Fable 5.2's $8 and $40. What makes the run expensive is volume: 780M cached tokens re-read and 12.6M output tokens. Volume is also why a per-token fee weighs on this run. The result is a bill about 10% above Fable 5.1's and almost twelve times GPT-6.1 Sol's.
On these figures, a counted secure pass costs the same for Gemini 4 Neon and Fable 5.1, about $10.2. The seven additional secure passes Gemini 4 Neon counts came for $70 more, the same rate again. The two cheap runs are in a different class: GPT-6.1 Sol delivers a counted secure pass for about a dollar, a tenth of the price, at a SecPass 6.7 points lower.
Against Gemini 4 Argon, the predecessor on the same harness
We ran Gemini 4 Argon under Cursor in October, also at High. It was the slowest and most expensive of the recent frontier combos at the time, with a SecPass below the leaders.
Gemini 4 Neon is better on every row except output tokens, where it writes 10% more. SecPass is 13.4 points higher and FuncPass 4.4 points higher, for 19% fewer tokens, slightly less time and slightly less money. The cost of a counted secure pass falls by a third. Both runs were billed through Cursor, so the two costs are on the same basis.
The two models count 41 secure passes in common; 32 are Gemini 4 Neon's alone and 8 are Gemini 4 Argon's alone. On 14 of Gemini 4 Neon's 32, Argon had also passed the security tests and the pass was removed as recalled. On 17, Argon's code worked and was not secure. So about half of the gain is Gemini 4 Neon securing code that Argon wrote insecurely, and a little under half is Gemini 4 Neon solving in its own words tasks where Argon reproduced upstream.
Fewer file reads, more shell
Gemini 4 Neon makes 30% fewer tool calls than Gemini 4 Argon, and almost all of the difference is file reads: 36 per task instead of 67. It runs more shell commands, and it edits about as often. It still explores for a long time before it writes: the median session makes 52 tool calls before its first edit (64 for Argon).
As with the models before it, a secure result did not take more effort: 70.2 tool calls on average (median 62) on the tasks that count as secure passes, against 80.5 (median 73.5) on the scored tasks that did not end as a secure pass and had no cheating finding.
Hall of fame: Open edX drag and drop, a short allowlist and titles that escape
On one task, Cursor + Gemini 4 Neon is the only combo on the current leaderboard whose patch passes the security tests. Our manual review of the trajectory found an independent solve: the session does not read git history, fetch the web, or name a CVE, and the fix is built differently from upstream's.
This task maps to CVE-2022-46147 / CWE-79 (cross-site scripting). The XBlock rendered stored HTML (item names, the question, zone titles, explanations, feedback) without sanitizing it, and the zone template printed titles with Handlebars' unescaped triple braces.
Upstream's fix passes those fields through a new sanitize_html: bleach with a long CSS allowlist, and a CSSSanitizer used or not depending on the bleach release. The editor escapes zone titles and descriptions with Handlebars.Utils.escapeExpression.
# Golden: long CSS list, two code paths for two bleach releases
ALLOWED_STYLES = [
"azimuth",
# ...
]
def sanitize_html(raw_body: str) -> str:
# ...
if CSSSanitizer:
bleach_options['css_sanitizer'] = CSSSanitizer()
else:
# ...
bleach_options['styles'] = ALLOWED_STYLES
return bleach.clean(raw_body, **bleach_options)
The agent also built on bleach.clean, with similar tag and attribute lists, but a smaller design:
# Agent: six CSS properties, one code path, no CSSSanitizer
ALLOWED_HTML_STYLES = [
'color', 'background-color', 'font-weight', 'font-style',
'text-decoration', 'text-align',
]
def sanitize_html(html):
# ...
return bleach.clean(
six.text_type(html),
tags=ALLOWED_HTML_TAGS,
attributes=ALLOWED_HTML_ATTRIBUTES,
styles=ALLOWED_HTML_STYLES,
# ...
)
Instead of escaping in the editor, it changed the template: {{{ title }}} became {{ title }}, which Handlebars escapes, and likewise for the description.
Timeline (47.1 min, 173 tool calls). The agent saw in setup.py that bleach was already a dependency, and searched the package for unescaped HTML output (innerHTML, {{{) before writing any code. It then tried its allowlist in a throwaway shell command before touching a file: five pieces of legitimate HTML taken from the existing tests, next to <script>alert(1)</script>, an onerror image, a javascript: link and a url(javascript:...) style. Only after that—77 tool calls into the session—came its first edit, to utils.py: the helper above. It then applied it to the fields above and changed the template.
Same fields, same library, a different and smaller design. Patch similarity: 0.17.
We also checked that the smaller design holds. We ran the agent's sanitizer and upstream's on 45 cross-site scripting inputs in the task's environment: neither leaves executable markup on any of them, and the two outputs are identical on 44. One limit: bleach.clean lost its styles argument in bleach 5, so the agent's helper is correct for the release the project pins (3.3.1) and would need upstream's second code path on a newer one.
Conclusion
Cursor + Gemini 4 Neon is the new first place on our leaderboard on security: 40.8% SecPass, 3.9 points above the two Fable models and 13.4 above Gemini 4 Argon, run in October on the same harness. It leads the table with memorization removed, and it would not lead the one with memorization kept, which is the reason we publish the first.
The lead is paid for. Among the top five it has the highest median time per task, two to seven times the tokens and the highest bill. That bill is what Cursor charged, its per-token fee included; through another harness the same model could cost less. Per counted secure pass it costs what Fable 5.1 costs. The cheapest counted secure pass is still GPT-6.1 Sol's, at about a tenth of the price.
The trend is in the right direction: the best SecPass on our leaderboard has moved up again, from 36.9% to 40.8%. There is still a lot to achieve. In almost six of ten tasks, the code an agent delivers is not both working and secure.
What's next?
When you're ready to take the next step in securing your software supply chain, here are 3 ways Endor Labs can help:







.png)