Skip to content

Commit a8eb9e5

Browse files
authored
Fix usage of vulnerable webpki dependency (#193)
Fixes #192
1 parent 2e3e36b commit a8eb9e5

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

.github/workflows/cargo-audit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Audit Rust dependencies
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '30 3 * * *' # At 3:30 every day
8+
9+
jobs:
10+
audit:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-rs/audit-check@v1
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Version numbers follow [Semantic Versioning](https://semver.org/).
55
## Unreleased
66

77
- Minor: Removed unused features from the `chrono` dependency (#185)
8+
- Bugfix: Upgraded dependencies to eliminate vulnerability in the `webpki` crate. (#193)
89

910
## v5.0.0
1011

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ no-default-features = true
2727

2828
[dependencies]
2929
async-trait = "0.1"
30-
async-tungstenite = { version = "0.17", features = ["tokio-runtime"], optional = true }
30+
async-tungstenite = { version = "0.23", features = ["tokio-runtime"], optional = true }
3131
bytes = { version = "1", optional = true }
3232
chrono = { version = "0.4", default-features = false }
3333
either = "1"
@@ -41,11 +41,11 @@ smallvec = "1"
4141
thiserror = "1"
4242
tokio = { version = "1", features = ["rt", "time", "sync", "macros"] }
4343
tokio-native-tls = { version = "0.3", optional = true }
44-
tokio-rustls = { version = "0.23", optional = true }
44+
tokio-rustls = { version = "0.24", optional = true }
4545
tokio-stream = { version = "0.1", features = ["io-util"], optional = true }
4646
tokio-util = { version = "0.7", features = ["codec"], optional = true }
4747
tracing = "0.1"
48-
webpki-roots = { version = "0.22", optional = true }
48+
webpki-roots = { version = "0.25", optional = true }
4949

5050
[dev-dependencies]
5151
maplit = "1"

src/transport/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl MakeConnection for TLS {
108108
let mut root_store = RootCertStore::empty();
109109

110110
#[cfg(feature = "transport-tcp-rustls-webpki-roots")]
111-
root_store.add_server_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.0.iter().map(|ta| {
111+
root_store.add_trust_anchors(webpki_roots::TLS_SERVER_ROOTS.iter().map(|ta| {
112112
tokio_rustls::rustls::OwnedTrustAnchor::from_subject_spki_name_constraints(
113113
ta.subject,
114114
ta.spki,

0 commit comments

Comments
 (0)