fix: remove satori/go.uuid dependency (CVE-2021-3538)#1630
Merged
james00012 merged 1 commit intomainfrom Dec 2, 2025
Merged
Conversation
a921e9b to
57427c2
Compare
Migrate Azure SDK packages from Track 1 (old) to Track 2 (new) to remove the vulnerable satori/go.uuid transitive dependency. The satori/go.uuid library has CVE-2021-3538 (predictable UUIDs due to insufficient randomness) and is unmaintained/archived. The old Azure SDK (Track 1) depends on it, but Microsoft's new SDK (Track 2) uses github.com/google/uuid instead. Migrated packages: - datafactory: services/datafactory/mgmt → armdatafactory/v9 - keyvault: services/keyvault/mgmt + keyvault/auth → armkeyvault + azsecrets/azkeys/azcertificates - postgresql: profiles/latest/postgresql/mgmt → armpostgresql - sql: profiles/latest/sql/mgmt → armsql - synapse: services/synapse/mgmt → armsynapse - appservice: services/web/mgmt → armappservice/v2 - mysql: profiles/latest/mysql/mgmt → armmysql BREAKING CHANGE: Return types changed for Azure helper functions. Users importing these types directly will need to update their code to use the new SDK types (e.g., *datafactory.Factory → *armdatafactory.Factory). Fixes #1624
57427c2 to
2b3d00f
Compare
denis256
approved these changes
Dec 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the vulnerable
satori/go.uuidtransitive dependency by migrating Azure SDK packages from Track 1 (old) to Track 2 (new).Why this change?
The
satori/go.uuidlibrary has CVE-2021-3538, a vulnerability where the generated UUIDs are predictable due to insufficient randomness seeding. The library is also unmaintained - the author has abandoned it and the repository is archived.The old Azure SDK for Go (Track 1, using
github.com/Azure/azure-sdk-for-go/services/...) depends onsatori/go.uuid. Microsoft has been deprecating Track 1 in favor of Track 2 (github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/...), which usesgithub.com/google/uuidinstead.The root cause was the
datafactorypackage - it was the one pulling insatori/go.uuidas a transitive dependency.Migrated Packages
services/datafactory/mgmt/2018-06-01/datafactoryarmdatafactory/v9services/keyvault/mgmt/.../keyvault+keyvault/autharmkeyvault+azsecrets/azkeys/azcertificatesprofiles/latest/postgresql/mgmt/postgresqlarmpostgresqlprofiles/latest/sql/mgmt/sqlarmsqlservices/synapse/mgmt/.../synapsearmsynapseservices/web/mgmt/.../webarmappservice/v2profiles/latest/mysql/mgmt/mysqlarmmysqlBreaking Changes
This affects users who call Azure helper functions (e.g.,
azure.GetSQLServer(),azure.GetMYSQLServer(),azure.GetDataFactory()) and access fields on the returned structs.Users who only use boolean helpers like
azure.AppExists()orazure.DatabaseExists()are NOT affected.1. Import changes (if importing SDK types directly)
2. Property access paths changed
3. Enum/constant types changed
4. Struct field name changes
Test plan
go build ./...passesgo mod why -m github.com/satori/go.uuidconfirms module is no longer neededsatori/go.uuidremoved from go.mod and go.sumFixes #1624