Skip to content

Use crypton instead of deprecated cryptonite#161

Open
dancewithheart wants to merge 2 commits into
mongodb-haskell:masterfrom
dancewithheart:replace-cryptohash
Open

Use crypton instead of deprecated cryptonite#161
dancewithheart wants to merge 2 commits into
mongodb-haskell:masterfrom
dancewithheart:replace-cryptohash

Conversation

@dancewithheart
Copy link
Copy Markdown

@dancewithheart dancewithheart commented May 4, 2026

This replaces deprecated cryptohash with crypton (see: yesodweb/wai#931, kazu-yamamoto/crypton#5 (comment), commercialhaskell/stack#6200 and commercialhaskell/stackage#7474).

Also cabal-audit reports:

Hackage package cryptonite at version 0.30 is vulnerable for:
  HSEC-2025-0002 "Double Public Key Signing Function Oracle Attack on Ed25519"
  published: 2025-11-14 14:45:34 UTC
  https://haskell.github.io/security-advisories/advisory/HSEC-2025-0002
  No fix version available
  crypto

this silence this warning.

I think mongodb is not affected by HSEC-2025-0002 - it does not uses Ed25519 signing.

Comment thread mongoDB.cabal Outdated
, random -any
, random-shuffle -any
, resourcet
, ram >= 0.22 && < 0.23
Copy link
Copy Markdown
Author

@dancewithheart dancewithheart May 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dancewithheart dancewithheart changed the title Replace deprecated cryptohash with crypton Use crypton instead of deprecated cryptonite May 11, 2026
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