Skip to content

Relax tesla constraint to ~> 1.4#1

Merged
janwillemvd merged 1 commit into
masterfrom
janwillemvd/relax-tesla-constraint
Jul 10, 2026
Merged

Relax tesla constraint to ~> 1.4#1
janwillemvd merged 1 commit into
masterfrom
janwillemvd/relax-tesla-constraint

Conversation

@janwillemvd

Copy link
Copy Markdown

Why

The current {:tesla, ">= 1.4.0 and <= 1.12.0"} cap forces every downstream consumer to stay on tesla 1.12.0, which is flagged by mix_audit for several advisories (first patched in 1.18.3), including high-severity ones:

  • GHSA-9m9w-gxf7-rh8m — Authorization header leaks on cross-origin redirect (high)
  • GHSA-h74c-q9j7-mpcm — atom exhaustion via untrusted URL scheme (high)
  • GHSA-mc85-72gr-vm9f — decompression bomb on response body (high)
  • GHSA-28jh-g32x-v9v4, GHSA-q7jx-v53g-848w — multipart smuggling / CRLF injection (low)

This is blocking dependency-audit CI in qdentity/mindfields-phx, which pulls excontainers (test-only) transitively.

Change

{:tesla, "~> 1.4"}>= 1.4.0 and < 2.0.0. Keeps the real lower bound, lifts the artificial <= 1.12.0 cap so consumers can move to 1.18.3+ and any future 1.x without needing another bump here, while still guarding against a breaking tesla 2.0 — excontainers uses the soft-deprecated use Tesla.Builder, which Tesla 2.0 will remove.

Verification

mix deps.update tesla resolves to tesla 1.20.0 and mix compile builds excontainers cleanly against it (only the expected use Tesla.Builder soft-deprecation warning). Docker-backed integration tests were not run in this environment.

The previous `>= 1.4.0 and <= 1.12.0` cap pinned downstream consumers to
tesla 1.12.0, which is affected by several security advisories (auth
header leak on redirect, atom exhaustion, decompression bomb, etc. —
first patched in tesla 1.18.3).

`~> 1.4` (i.e. `>= 1.4.0 and < 2.0.0`) keeps excontainers' real lower
bound and lets consumers pick up 1.18.3+ and any future 1.x, while still
guarding against a breaking tesla 2.0 (excontainers uses the soft-
deprecated `use Tesla.Builder`, which 2.0 will remove).

Verified: excontainers compiles cleanly against tesla 1.20.0.
@janwillemvd janwillemvd self-assigned this Jul 10, 2026
@janwillemvd
janwillemvd merged commit 05ef5d3 into master Jul 10, 2026
1 check failed
@janwillemvd
janwillemvd deleted the janwillemvd/relax-tesla-constraint branch July 10, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant