Kotlin Weekly #9: Security Newsletter Debuts; Benchmark 2.0 Puts AI Coding Agents to the Test

Kotlin · Weekly #9

Kotlin Weekly #9: Security Newsletter Debuts; Benchmark 2.0 Puts AI Coding Agents to the Test

kotlinKotlinLanguage WeeklySecurityAI Benchmark

Sources:GitHub Releases + 官方博客 + HN

📦 Release Updates

The current stable version is Kotlin 2.4.21. The releases page on kotlinlang.org (last modified 2026-10-06) states plainly: “Latest Kotlin version: 2.4.21”. No new stable release shipped this week (2026-11-23 through 2026-11-30), so 2.4.21 remains the baseline for production.

The next language version, 2.5.0, is scheduled for December 2026, with tooling version 2.5.20 slated for March 2027. The release cadence has three tiers: language versions (2.x.0) every 6 months; tooling versions (2.x.20) 3 months after the corresponding language version; and bug fix releases (2.x.yz) with no fixed schedule, shipped as needed. When planning dependency upgrades, you can plan directly against the language version dates.

One more hard fact: starting with Kotlin 2.4.0, every JVM standard library release line has an 18-month security fix support window. This policy comes from the first-ever security newsletter published this week — details in the deep-dive section below. You can back-plan your upgrade rhythm against that 18-month window: release lines past the window stop receiving security patches, and the cost of staying on an older line grows over time.

For what changed in the 2.4 line itself, see the earlier Kotlin 2.4 New Features Explained, which covers the same release line as the current 2.4.21.

📝 Deep Dives

The Kotlin Security Newsletter Launches

On 2026-11-27, the official JetBrains blog announced the Kotlin Security Newsletter, published monthly. Coverage spans Kotlin itself, the kotlinx libraries, Compose Multiplatform, Ktor, and Exposed, listing affected and fixed versions for each item, while also folding in broader ecosystem security news affecting Kotlin applications. One report gives you vulnerability information for both the language core and the major server-side/client-side components at once.

For ops and security teams, the value is consolidation of information sources: instead of separately monitoring the JetBrains site, individual library repos, and CVE databases, a single monthly subscription covers it all — and each advisory directly maps “affected version → fixed version,” which translates straight into upgrade tickets. For library authors, the fact that JetBrains puts backend components like Ktor server and Exposed in the same report as client libraries targeting Android / KMP signals that security advisories are now scoped to the entire Kotlin ecosystem rather than split by project. The first issue also disclosed the 18-month support window policy (see Release Updates), and the newsletter will continue to carry this kind of policy information.

10 Security Fixes in 2026, After Just 1 Each in the Previous Two Years

The first issue provided two sets of numbers. Internally: the team shipped 10 security fixes in 2026 so far, covering Kotlin / Ktor / Exposed / kotlinx — versus only 1 in each of the previous two years, a tenfold increase in a single year. Externally: the October 2026 OpenJDK quarterly update fixed 54 vulnerabilities, triple the count of any update since OpenJDK began publishing security advisories in 2019. By putting these two numbers side by side, the Kotlin team is making the point that the entire ecosystem’s security exposure is growing.

The distribution of fix locations is also worth noting: they span the backend (Ktor server, Exposed), build tooling, the Ktor client, and libraries like kotlinx.serialization that large numbers of Android / KMP applications depend on. Whether you write server-side or mobile code, chances are at least one of these 10 fixes touches you directly. Most fixes came from external researcher reports. The official attribution is the overall acceleration of security research, with AI tools helping researchers find issues; the accompanying policy change is that reporters must manually confirm AI-assisted findings before submitting, to prevent low-quality reports from flooding the triage process.

Benchmark 2.0: The Task Set and Anti-Cheating Design

Released on 2026-11-23, Kotlin Benchmark 2.0 contains 100 repo-level tasks: 70 drawn from 25 open-source GitHub repositories, split by domain into 30 Android, 20 backend, 10 KMP, and 10 libraries and tooling; plus 30 from JetBrains’ private repositories, all server-side Kotlin, with neither the code nor the fixes published. Tasks involving small single-file changes have been eliminated entirely — difficulty has moved from “change one spot” to “locate and fix within repository context.”

The anti-gaming measures are the focus of this release. Open-source tasks run in a sandbox with network access disabled, allowing only the model itself; dependencies are pre-cached and repository history is hidden, preventing agents from mining git log for answer clues. Each configuration runs 3 times with results averaged; a 30-minute per-task cap applies. Private tasks may still go online, on the grounds that the fixes were never published — even web search can’t find the answers. The intent of this design is to suppress memorization scores: open-source commits a model has memorized no longer earn points, while the private-repo tasks measure genuine retrieval and reasoning. JetBrains explicitly warns that the task set is a harder version, and scores are not comparable to the first edition — only within the same benchmark version.

Benchmark 2.0: Results and the Cost Gap

The best configuration across all tasks was Claude Code + Opus 5.5, with a 75.3% solve rate at an average of $0.84/task; the other 12 configurations ranged from 54.3% to 73.7%, at $0.02–$3.14 per task. The cost spread from top to bottom exceeds 150x, yet solve rates differ by only about 21 percentage points — the cost curve is steep.

The per-domain breakdown is more interesting. On the open-source subset, Claude Code + Fable 5.1 leads at 86.2%, but at an average cost of $2.38/task; Claude Code + Opus 5.5 hits 84.8% ($0.68), and Junie with Opus 5.5 and GPT 6 Luna reaches 79.5% ($0.33). The two-point lead at the top costs more than triple the per-task price. On the closed-source subset, Antigravity CLI + Gemini 3.8 Flash performs best (60%, $1.74/task), with OpenCode + DeepSeek V4.1 Flash right behind (58.9%, $0.08/task) — the runner-up costs one-twentieth as much. On closed-source code, every configuration’s solve rate falls below the open-source subset’s top results, by more than 20 percentage points. When picking a stack, teams can compare cost/solve-rate within the same benchmark version and pick a point based on their own task volume and budget.

Advent of Code 2026 and Kotlin Heroes Episode 15

December brings two official event entry points. Advent of Code 2026 starts December 1 with one puzzle per day; the official JetBrains blog published “‘Tis the Season to Code in Kotlin” on 2026-11-26, covering how to tackle it with Kotlin. Additionally, on 2026-11-25 JetBrains announced Kotlin Heroes: Episode 15 – Anniversary Edition — an algorithm competition that coincides with both the 15th episode and Kotlin’s 15th anniversary, with the edition number and year lining up. The two events cover different audiences across time zones: Advent of Code’s daily cadence suits squeezing in one puzzle a day, while Kotlin Heroes is a time-boxed algorithm contest for concentrated effort. For year-end practice, slot both into your schedule.

🔥 Community Buzz

Stos v1.0.0 Released

The only Kotlin-related item on Hacker News this week: Stos, an open-source Stack Exchange client built with Kotlin Multiplatform, released v1.0.0, at 1 point (2026-11-23). Discussion was thin, with no substantive debate. But for developers interested in “shipping desktop/client products with KMP,” this is a v1.0 project worth reading the source of: it walks the full KMP path from shared logic to a shippable client, so you can study the engineering structure directly. Link: https://github.com/Stos-project/Stos/releases/tag/v1.0.0

The Closed-Source vs. Open-Source Controversy Around Benchmark 2.0

Based on the official numbers, the core points of contention after Benchmark 2.0’s release will come down to two things. First, the best closed-source result is only 60% (Antigravity CLI + Gemini 3.8 Flash), roughly 26 percentage points below the open-source subset’s leaders — raising doubts about how usable AI coding agents actually are in private repositories, since high open-source scores may partly reflect familiarity with public repo patterns. Second, the cost spread exceeds 100x ($0.02 vs. $3.14/task); whether a high-solve-rate configuration is worth it depends on task volume: pick the budget tier for batch-running small tasks, and the top configuration for heavy work on critical repos. Note that JetBrains explicitly says this edition’s task set is harder, so scores can’t be compared against the first edition.

What the 18-Month Security Window Means for Upgrade Strategy

The 18-month support window disclosed in the first security newsletter essentially turns the JVM standard library’s maintenance commitment into a computable schedule. Combined with the three-tier release cadence: language versions every 6 months means a single release line covers roughly three generations of language versions within its window. Teams pinning a line for long-lived projects need to complete at least one cross-language-version migration before the window closes; conversely, teams that track each language version stay permanently inside the security-patch-covered range. The sharp rise in security fixes in 2026 (10 vs. 1 each in the previous two years) amplifies the weight of this policy — staying on an out-of-window line means your risk exposure grows in step with the pace of vulnerability discovery.