Commit c46e99e
authored
fix(deps): upgrade hickory-resolver 0.25 → 0.26 to fix RUSTSEC-2026-0118/0119 (#53)
* fix(deps): upgrade hickory-resolver 0.25 → 0.26 to fix RUSTSEC-2026-0118/0119
Upgrades hickory-resolver and hickory-proto from 0.25 to 0.26.1, which
resolves both CVEs affecting hickory-proto 0.25.2:
- RUSTSEC-2026-0119: CPU exhaustion via crafted DNS response (fixed >=0.26.1)
- RUSTSEC-2026-0118: NSEC3 unbounded hash iteration (fixed in 0.26)
Migrates crates/ans-verify/src/dns.rs to the 0.26 API:
- TokioConnectionProvider -> hickory_resolver::net::runtime::TokioRuntimeProvider
- ResolverConfig presets (cloudflare/google/quad9) -> ResolverConfig::udp_and_tcp/tls(&CLOUDFLARE/GOOGLE/QUAD9)
- NameServerConfigGroup::from_ips_clear -> Vec<NameServerConfig::udp_and_tcp>
- builder.build() now returns Result, propagate with map_err
- Error matching: ResolveErrorKind/ProtoErrorKind -> NetError/HickoryDnsError directly
- response.iter() -> response.answers() with RData::TXT/TLSA pattern matching
- TLSA fields now pub, use u8::from(field) instead of method calls
* style(dns): fix rustfmt and clippy::similar_names warnings1 parent 74f303c commit c46e99e
3 files changed
Lines changed: 327 additions & 181 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments