Skip to content

AI 0.12.2: The flagged cowlib and gun packages leave the dependencies

AI 0.12.2 removes the security advisory noted in 0.12.0 from the module’s dependencies.

The module now uses xai 0.2, where the gun and mint packages behind its gRPC transport are optional. The module does not use that transport and does not add gun itself, so gun and cowlib, with their two open advisories, are no longer pulled in at all.

No change for a running site beyond the smaller dependency set.

Full release notes: AI 0.12.2

0.12.2 · 14 July 2026

Fixed

  • The cowlib/gun advisory noted in 0.12.0 no longer applies. xai 0.2.0 made gun (and mint) optional adapters for its gRPC transport (Xai.Chat/Xai.Video, which this module never calls) instead of a hard dependency. Bumping to xai ~> 0.2 and not separately depending on gun drops gun/cowlib out of this module’s dependency tree entirely — confirmed via mix deps.get/mix.lock — rather than merely not exercising the vulnerable code path at runtime.
  • Depends on xai ~> 0.2 (was ~> 0.1).

AI 0.12.2. Install or update: {:phoenix_kit_ai, "~> 0.12"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.