Skip to content

Commit caa04f8

Browse files
cursoragentlazyxeon
andcommitted
fix(security): deny unknown git sources and justify remaining advisories
Fail cargo-deny on unknown git dependencies. Allow the SPDX ids the updated graph needs. Ignore only advisories with no patched release, each tied to a tracking issue, and teach cargo-audit the same IDs. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
1 parent cbac342 commit caa04f8

2 files changed

Lines changed: 66 additions & 11 deletions

File tree

‎.cargo/audit.toml‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# cargo-audit 0.22.2 reads this file (`.cargo/audit.toml`).
2+
# `ignore` is a list of advisory IDs. The schema has no reason field;
3+
# the reason and tracking issue live in the comment and in `deny.toml`.
4+
#
5+
# Vulnerability IDs below have no upgrade that keeps the current parents.
6+
# Unmaintained IDs have no patched release. Each one has a tracking issue.
7+
# `zip` 1.1.4 stays as a yanked warning: cargo-audit cannot ignore a
8+
# single yanked crate. candle-core 0.8.4 is the parent.
9+
# https://github.com/lazyxeon/AstraWeave/issues/324
10+
11+
[advisories]
12+
ignore = [
13+
# nalgebra 0.26.2 is pinned by mikktspace 0.3.0. Tangent generation
14+
# does not deserialize VecStorage.
15+
# https://github.com/lazyxeon/AstraWeave/issues/306
16+
"RUSTSEC-2021-0070",
17+
18+
# quick-xml < 0.41 is pulled by egui-winit/accesskit and wayland-scanner.
19+
# Those parents do not accept 0.41.
20+
# https://github.com/lazyxeon/AstraWeave/issues/308
21+
"RUSTSEC-2026-0194",
22+
"RUSTSEC-2026-0195",
23+
24+
# Unmaintained, no patched release. Same IDs as deny.toml.
25+
# https://github.com/lazyxeon/AstraWeave/issues/305
26+
"RUSTSEC-2025-0141",
27+
# https://github.com/lazyxeon/AstraWeave/issues/307
28+
"RUSTSEC-2025-0119",
29+
# https://github.com/lazyxeon/AstraWeave/issues/309
30+
"RUSTSEC-2026-0249",
31+
# https://github.com/lazyxeon/AstraWeave/issues/310
32+
"RUSTSEC-2026-0192",
33+
# https://github.com/lazyxeon/AstraWeave/issues/311
34+
"RUSTSEC-2024-0449",
35+
36+
# Older unmaintained parents. No patched release.
37+
# https://github.com/lazyxeon/AstraWeave/issues/320
38+
"RUSTSEC-2023-0089",
39+
# https://github.com/lazyxeon/AstraWeave/issues/321
40+
"RUSTSEC-2025-0057",
41+
# https://github.com/lazyxeon/AstraWeave/issues/322
42+
"RUSTSEC-2024-0384",
43+
# https://github.com/lazyxeon/AstraWeave/issues/323
44+
"RUSTSEC-2024-0436",
45+
]

‎deny.toml‎

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ allow = [
1414
"ISC",
1515
"Zlib",
1616
"MPL-2.0",
17+
"MIT-0", # MIT No Attribution - borrow-or-share
1718
"Unicode-3.0", # Used by ICU4X crates
1819
"Unicode-DFS-2016", # Used by Unicode normalization
1920
"OFL-1.1", # SIL Open Font License (for fonts)
21+
"Ubuntu-font-1.0", # Ubuntu Font Licence - epaint_default_fonts
2022
"CDLA-Permissive-2.0", # Community Data License Agreement - used by webpki-roots
2123
"BSL-1.0", # Boost Software License 1.0 - used by clipboard-win and error-code
2224
"NCSA", # University of Illinois/NCSA Open Source License - used by libfuzzer-sys
23-
"LicenseRef-UFL-1.0", # Ubuntu Font License - used by epaint/egui fonts
25+
"bzip2-1.0.6", # bzip2 license - libbz2-rs-sys
2426
]
2527

2628
# The confidence threshold for detecting a license from a license text.
@@ -72,7 +74,7 @@ external-default-features = "allow"
7274
unknown-registry = "warn"
7375
# Lint level for what to happen when a crate from a git repository that is not
7476
# in the allow list is encountered
75-
unknown-git = "warn"
77+
unknown-git = "deny"
7678

7779
# List of allowed registries
7880
allow-registry = [
@@ -96,17 +98,25 @@ maximum-db-staleness = "P90D"
9698
# A list of advisory IDs to ignore. Note that ignored advisories will still
9799
# output a note when they are encountered.
98100
ignore = [
99-
# Known issues that we accept for now - these are maintenance warnings, not security vulnerabilities
100-
"RUSTSEC-2024-0388", # derivative crate is unmaintained - used by transitive deps
101-
"RUSTSEC-2024-0384", # instant crate is unmaintained - used by transitive deps
102-
"RUSTSEC-2024-0436", # paste crate is unmaintained - used by transitive deps
103-
"RUSTSEC-2025-0052", # async-std has been discontinued - used by orchestrator_async_tick example
104-
"RUSTSEC-2023-0089", # atomic-polyfill is unmaintained - used by heapless -> postcard
105-
"RUSTSEC-2025-0057", # fxhash no longer maintained - used by sled -> aw-net-server
106-
101+
# Unmaintained, no patched release. One advisory ID, one issue.
102+
{ id = "RUSTSEC-2024-0384", reason = "instant 0.1.13 has no patched release. parking_lot 0.11 (sled 0.34) and rhai 1.23.4 pin it. https://github.com/lazyxeon/AstraWeave/issues/322" },
103+
{ id = "RUSTSEC-2024-0436", reason = "paste 1.0.15 has no patched release. egui_dock, rav1e, simba, steamworks, and tokenizers pin it. https://github.com/lazyxeon/AstraWeave/issues/323" },
104+
{ id = "RUSTSEC-2023-0089", reason = "atomic-polyfill 1.0.3 has no patched release. heapless 0.7.17 (postcard) pins it. https://github.com/lazyxeon/AstraWeave/issues/320" },
105+
{ id = "RUSTSEC-2025-0057", reason = "fxhash 0.2.1 has no patched release. sled 0.34.7 (aw-net-server) pins it. https://github.com/lazyxeon/AstraWeave/issues/321" },
106+
107107
# RESOLVED VULNERABILITIES (historical record):
108-
# RUSTSEC-2021-0070 - nalgebra 0.26.2 memory corruption - FIXED by removing mikktspace dependency (2025-10-12)
109108
# RUSTSEC-2024-0437 - protobuf 2.28.0 DoS vulnerability - FIXED by updating prometheus to 0.14 (2025-10-12)
109+
110+
# No patched release, or the patched crate is pinned by a parent this
111+
# branch does not upgrade. One advisory ID, one reason, one issue.
112+
{ id = "RUSTSEC-2025-0141", reason = "bincode 1 and 2 have no patched release. Replay and save bytes stay on bincode. https://github.com/lazyxeon/AstraWeave/issues/305" },
113+
{ id = "RUSTSEC-2021-0070", reason = "nalgebra 0.26.2 is pinned by mikktspace 0.3.0, which has no newer release. Tangent generation does not deserialize VecStorage. https://github.com/lazyxeon/AstraWeave/issues/306" },
114+
{ id = "RUSTSEC-2025-0119", reason = "number_prefix 0.4.0 has no patched release. indicatif 0.17 in the asset CLI is the only parent. https://github.com/lazyxeon/AstraWeave/issues/307" },
115+
{ id = "RUSTSEC-2026-0194", reason = "quick-xml < 0.41 comes from egui-winit/accesskit and wayland-scanner. Those parents do not accept 0.41. https://github.com/lazyxeon/AstraWeave/issues/308" },
116+
{ id = "RUSTSEC-2026-0195", reason = "quick-xml NsReader DoS has the same parent constraint as RUSTSEC-2026-0194. https://github.com/lazyxeon/AstraWeave/issues/308" },
117+
{ id = "RUSTSEC-2026-0249", reason = "smartstring 1.0.1 has no patched release. rhai 1.23.4 pins it. https://github.com/lazyxeon/AstraWeave/issues/309" },
118+
{ id = "RUSTSEC-2026-0192", reason = "ttf-parser 0.25.1 has no patched release. egui 0.32 pulls it through ab_glyph. https://github.com/lazyxeon/AstraWeave/issues/310" },
119+
{ id = "RUSTSEC-2024-0449", reason = "unsafe-libyaml has no patched release. aw_trace_sync is the only serde_yaml caller. https://github.com/lazyxeon/AstraWeave/issues/311" },
110120
]
111121

112122
# Threshold for security vulnerabilities, any vulnerability with a CVSS score

0 commit comments

Comments
 (0)