Clojure
Clojure 1.12.8

Clojure 1.12.8

02 December 2026
Alex Miller

Clojure 1.12.8 is now available! Find download and usage information on the Downloads page.

This release replaces the change in Clojure 1.12.7 re the serialization issue detailed in GHSA-x4c4-68gp-vrhc.

Reading serialized Java data from untrusted streams is inherently unsafe and Clojure function classes could be used in such an attack (in combination with standard JDK classes).

Clojure 1.12.8:

  • Function serialization is always allowed

  • Removes system property clojure.serializable.fns

  • Adds system property clojure.deserialize.code with values true/false/unknown

  • Adds dynamic var *deserialize-code*, initialized from system property to true/false/:unknown, default=false

  • In function deserialization:

  • If var is true, allow deserialization to continue

  • If var is false, throw IOException preventing deserialization

  • If var is :unknown, throw RuntimeException to alert developer that a code path is not explicitly protecting deserialization, for diagnostic use

Changes:

  • CLJ-2998 - Code deserialization control