Skip to content

Apply security updates for dependencies - #167

Merged
otigges merged 3 commits into
mainfrom
security-dependency-updates
Oct 6, 2026
Merged

otigges merged 3 commits into
mainfrom
security-dependency-updates

Conversation

@otigges

@otigges otigges commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

mix hex.audit reported 29 known security advisories in the locked dependencies. This PR resolves 21 of them without a major version change. It has three commits:

  1. Update dependencies within current version limits. Only mix.lock changes; 21 packages are updated. This resolves 19 advisories, among them:
    • plug 1.19.2 → 1.20.3: denial of service through nested request parameters (high)
    • phoenix 1.7.23 → 1.7.24: denial of service through unlimited channel joins (high)
    • cowboy 2.16.1 → 2.19.0 and cowlib 2.17.1 → 2.20.0: several HTTP server issues
    • mint 1.9.0 → 1.11.0 and hpax 1.0.3 → 1.1.0: several HTTP client issues
    • swoosh 1.26.1 → 1.28.1
  2. Update postgrex to 0.22 and ecto to 3.13. The limit for ecto_psql_extras goes from ~> 0.7.13 to ~> 0.8, because the old version allowed only postgrex 0.17. This resolves two postgrex advisories (Postgrex.Notifications, which the app does not use).
  3. Fix npm audit finding in @babel/runtime. Updates the transitive dependency of choices.js in assets/package-lock.json. npm audit now reports 0 vulnerabilities.

Remaining advisories (8)

Package Count Why not fixed here
hackney 1.25.0 4 (one high) The fix needs hackney 4, which needs newer httpoison and openai packages. The app only calls fixed hosts.
cowlib 2.20.0 2 No fixed release exists yet.
decimal 2.4.1 1 The fix needs version 3, which the number package blocks.
phoenix_live_view 0.20.17 1 (low) Fixed only from 1.0.19; part of the planned LiveView upgrade.

Before you merge

Merging deploys to production (Cloud Run), as with every green test run on main.

Test plan

  • Test image built from a clean checkout, tests against PostgreSQL 18.6: 139 passed
  • Production image builds, including the asset build
  • Production image starts against PostgreSQL 18: migrations run, /users/log_in returns 200, the JS bundle is served
  • mix hex.audit shows only the 8 advisories listed above
  • CI is green on this branch
  • Check the deployment on Cloud Run after merge

🤖 Generated with Claude Code

otigges and others added 3 commits October 6, 2026 17:56
Updates 21 packages in mix.lock, among them plug 1.20.3, phoenix 1.7.24,
cowboy 2.19.0, cowlib 2.20.0, mint 1.11.0, hpax 1.1.0 and swoosh 1.28.1.
This resolves 19 of the 29 advisories reported by mix hex.audit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Raise the ecto_psql_extras limit to ~> 0.8, which allowed only
postgrex 0.17 before. This resolves two postgrex advisories.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Update the transitive dependency of choices.js to 7.29.7 in
package-lock.json.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@otigges
otigges merged commit efd97b5 into main Oct 6, 2026
2 checks passed
@otigges
otigges deleted the security-dependency-updates branch October 6, 2026 16:10
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