fix(deps): bump plug_crypto to 2.2.1 (CVE-2026-105963) #92
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!92
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/plug-crypto-2.2.1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'stokenstraight toPhoenix.Token.verify, so joininglvu:1with{"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 precommitpasses (636 tests).After deploying, consider rotating
SECRET_KEY_BASEif logs may have been exposed.Not a milestone ticket; found in the v0.9 mix.lock audit.