Skip to content

Pin serde to <1.0.172#359

Merged
newpavlov merged 1 commit intomasterfrom
pin_serde
Aug 19, 2023
Merged

Pin serde to <1.0.172#359
newpavlov merged 1 commit intomasterfrom
pin_serde

Conversation

@newpavlov
Copy link
Copy Markdown
Member

serde v1.0.172 and later include pre-compiled binaries which is a security hazard. So until the decision gets reverted, I believe it's worth to pin upper version of serde. This approach may cause issues if a different crate in someone's dependency tree will depend on a post-1.0.172 version of serde, but I think this issue is small enough when compared to the security concerns. Also, a number of other crates in the ecosystem follow this approach, so we are not alone.

More information and discussion about the serde change can be found in serde-rs/serde#2538.

Copy link
Copy Markdown
Member

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

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

sad, but makes sense

@tarcieri
Copy link
Copy Markdown
Member

tarcieri commented Aug 19, 2023

Isn't the offending binary in the serde_derive crate?

Edit: oh, I see, serde pins serde_derive with =

@newpavlov
Copy link
Copy Markdown
Member Author

serde uses pinned version of serde_derive, i.e. serde v1.0.172 uses strictly only serde_derive v1.0.172

@newpavlov newpavlov force-pushed the pin_serde branch 3 times, most recently from c3b2384 to 5713330 Compare August 19, 2023 14:36
@newpavlov
Copy link
Copy Markdown
Member Author

@dignifiedquire
I will merge this PR, but will not do a release and will leave it up to your discretion.

@newpavlov newpavlov merged commit 3e17a67 into master Aug 19, 2023
@newpavlov newpavlov deleted the pin_serde branch August 19, 2023 15:08
takumi-earth pushed a commit to earthlings-dev/RSA that referenced this pull request Jan 27, 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.

3 participants