-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Scanning my go.mod file revealed the following problem caused by indirect loading from go-sql-driver/mysql:
filippo.io/edwards25519 has a vulnerability GO-2026-4503.vulncheck imports
filippo.io/edwards25519
Note: The project imports packages with known vulnerabilities. Use govulncheck to check if the project uses vulnerable symbols.
GO-2026-4503 Invalid result or undefined behavior in filippo.io/edwards25519
filippo.io/edwards25519 Fixed in v1.1.1.
This module is necessary because filippo.io/edwards25519 is imported in:
- apod/apod-backend-api/database
-- github.com/go-sql-driver/mysql
I assume the easy fix is just a matter of updating the version to 1.1.1, and can be completed without any issue. Note that 1.1.1 is three years old and there's now a 1.2.0 version
However I note that filippo.io/edwards25519 readme states:
Most users don't need this package, and should instead use crypto/ed25519 for signatures, crypto/ecdh for Diffie-Hellman, or github.com/gtank/ristretto255 for prime order group logic.
Therefore, a better fix might be to remove filippo.io/edwards25519 altogether.