iddm/serde-aux

RUSTSEC-2020-0071 and 'chrono' dependency

damccull opened this issue · 7 comments

Hello,

Apparently the 'chrono' crate still includes its 'oldtime' feature as a default, which depends on an old version of the 'time' crate (v0.1.43) that has a vulnerability in it.
https://rustsec.org/advisories/RUSTSEC-2020-0071.html

For my own projects, I disable chrono's default features, then manually include all of the defaults except for 'oldtime', which is what the readme on chrono's repo recommends.

However, pulling in serde_aux seems to bring in chrono with the 'default' features selected, including 'oldtime'.

Any chance you could remove the 'oldtime' feature from your dependency on chrono to avoid this CVE in downstream projects?

iddm commented

Thanks for noticing this! I will be unable to change anything for a week from now, but after this I'll do that.

iddm commented

I have just specified the features I need by explicitly mentioning them in my Cargo.toml:

[dependencies.chrono]
optional = true
version = "0.4"
features = ["alloc", "std", "clock"]

Is this enough? Or do I still need to specify no-default-features?

Your also need to specify no-default-features because the "oldtime" feature is currently a default one, apparently for backwards compatibility.

iddm commented

Should be done now.

Neat. Thank you. What release shall we expect to see it in?

iddm commented

👍