Kotlin Ecosystem Security Digest #1

Check your BMI

Welcome to the first Kotlin Ecosystem Security Digest. This issue covers security fixes in Kotlin 2.5.0, Ktor, kotlinx.serialization, and kotlinx-io. We’ve also included a critical SQL injection fix in Exposed and other earlier disclosures.

Check the versions and features your projects use against the advisories below. The fixed versions show where each patch shipped. When you update, choose the latest applicable release that includes the fixes you need.

Kotlin 2.5.0

Kotlin 2.5.0 fixes four security issues. The advisories list versions before 2.5.0 as affected. If one of these issues applies to your build, update to 2.5.0 or later.

  • Path traversal in Kotlin Multiplatform dependency metadata (high severity). CVE-2026-135284
  • Possible code execution involving KAPT classpath snapshots. CVE-2026-135282
  • Path traversal when unpacking the Kotlin/Native distribution. CVE-2026-135283
  • Path traversal involving Kotlin/JS library package names. CVE-2026-135285

This release also updates vulnerable third-party dependencies. See the Kotlin 2.5.0 release notes for the dependency list.

Ktor

Fixes in Ktor 3.6.2

Ktor 3.6.2 contains seven security fixes. If you’re on an earlier 3.6 release, check the features below and update to 3.6.2 or later. Some of the fixes also shipped on the 3.5 and 3.4 lines.

  • LDAP authentication bypass and improper JWT issuer validation. Fixed in 3.6.2, 3.5.3, and 3.4.4. CVE-2026-142044 and CVE-2026-142047
  • Information disclosure involving servlet web resources. Fixed in 3.6.2 and 3.5.3. CVE-2026-142043
  • Authentication bypass in nested authentication blocks or when several authentication providers are required. Fixed in 3.6.2. CVE-2026-142046 and CVE-2026-142048
  • Information disclosure through the shared client cache and disclosure of proxy credentials in the CIO engine. Fixed in 3.6.2. CVE-2026-142045 and CVE-2026-142049

Fixes in Ktor 3.6.1

Ktor 3.6.1 fixed four issues affecting earlier versions, including a high-severity session forgery issue. The other fixes address HTTP request smuggling and denial of service in the CIO engine, and cookie injection in client cookie storage. If you’re on the 3.6 line, update to 3.6.2 or later for both sets of fixes. CVE-2026-123317, CVE-2026-123318, CVE-2026-133255, and CVE-2026-123319

kotlinx.serialization and kotlinx-io

  • kotlinx.serialization before 1.12.0 is affected by a denial-of-service issue in recursive JSON decoding. Update to 1.12.0 or later. CVE-2026-135271
  • kotlinx-io before 0.9.3 is affected by a potential information disclosure issue involving partial file writes on Node.js. Update to 0.9.3 or later. CVE-2026-135272

Earlier fixes worth checking

  • Exposed. Versions before 1.5.1 are affected by a critical SQL injection issue. Update to 1.5.1 or later. CVE-2026-108474
  • Kotlin build tooling. Versions before 2.4.20 are affected by a build-cache issue that could allow code execution. The fix shipped in 2.4.20. CVE-2026-53914
  • Ktor WebSockets. Versions before 3.4.1 are affected by a denial-of-service issue in WebSocket decompression. The fix shipped in 3.4.1. CVE-2026-68762

Kotlin security resources

Seeing Protobuf CVEs in a dependency scan? For help checking which findings apply to your Kotlin artifacts, see the Kotlin security FAQ.

If you’ve found a potential vulnerability, report it privately using the Kotlin security reporting guidelines.