fix(deps): bump plug_crypto to 2.2.1 (CVE-2026-105963) #92

Merged
jfro merged 1 commit from fix/plug-crypto-2.2.1 into main 2026-10-25 22:54:38 +00:00
Owner

Bumps plug_crypto 2.2.0 → 2.2.1 to fix EEF-CVE-2026-105963 / GHSA-ffw9-w85g-f2vh (medium, CWE-532).

Issue: Plug.Crypto validates arguments in function-head guards, so a wrong-typed argument raises a FunctionClauseError whose crash report includes the secret_key_base. Here it's reachable without logging in: LiveView's upload channel (lvu:*) passes the join payload's token straight to Phoenix.Token.verify, so joining lvu:1 with {"token": 123} writes the key into the error log. Anyone with log access could then forge session cookies.

Change:

  • mix deps.update plug_crypto: only the plug_crypto line in mix.lock changes (patch release; changelog is just this fix).
  • test/fuzzy_catalog_web/plug_crypto_leak_test.exs: regression test from Nye's audit. Fails on 2.2.0, passes on 2.2.1.

mix precommit passes (636 tests).

After deploying, consider rotating SECRET_KEY_BASE if logs may have been exposed.

Not a milestone ticket; found in the v0.9 mix.lock audit.

Bumps plug_crypto 2.2.0 → 2.2.1 to fix EEF-CVE-2026-105963 / [GHSA-ffw9-w85g-f2vh](https://github.com/advisories/GHSA-ffw9-w85g-f2vh) (medium, CWE-532). **Issue:** Plug.Crypto validates arguments in function-head guards, so a wrong-typed argument raises a FunctionClauseError whose crash report includes the secret_key_base. Here it's reachable without logging in: LiveView's upload channel (`lvu:*`) passes the join payload's `token` straight to `Phoenix.Token.verify`, so joining `lvu:1` with `{"token": 123}` writes the key into the error log. Anyone with log access could then forge session cookies. **Change:** - `mix deps.update plug_crypto`: only the plug_crypto line in mix.lock changes (patch release; changelog is just this fix). - `test/fuzzy_catalog_web/plug_crypto_leak_test.exs`: regression test from Nye's audit. Fails on 2.2.0, passes on 2.2.1. `mix precommit` passes (636 tests). After deploying, consider rotating `SECRET_KEY_BASE` if logs may have been exposed. Not a milestone ticket; found in the v0.9 mix.lock audit.
jfro added this to the v0.9.0 milestone 2026-10-25 21:51:50 +00:00
fix(deps): bump plug_crypto to 2.2.1 (CVE-2026-105963)
All checks were successful
CI / test (pull_request) Successful in 1m25s
3e2eb6aac8
plug_crypto 2.2.0 can write secret_key_base into crash reports when given a
wrong-typed argument; LiveView's upload channel reaches this unauthenticated.
Adds a regression test (from Nye's audit).
jfro merged commit 7f3f4315bc into main 2026-10-25 22:54:38 +00:00
jfro deleted branch fix/plug-crypto-2.2.1 2026-10-25 22:54:38 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog!92
No description provided.