Skip to content

Fix/security audit small#19

Merged
gitfeber merged 9 commits into
mainfrom
fix/security-audit-small
Jun 12, 2026
Merged

Fix/security audit small#19
gitfeber merged 9 commits into
mainfrom
fix/security-audit-small

Conversation

@gitfeber

Copy link
Copy Markdown
Owner

No description provided.

gitfeber and others added 9 commits June 13, 2026 00:00
cargo audit already gates the desktop crate; production JS dependencies
had no advisory scan in CI. Add audit:js and run it in branch-checks and
main CI so known npm advisories fail the pipeline.

Fixes audit F-11 (partial — triage/allowlist policy still open).

Co-authored-by: Cursor <cursoragent@cursor.com>
MAVLink and CRSF decoders could propagate NaN/Infinity into TelemetryState,
poisoning stats and downstream geo math without an obvious UI failure.
Apply finiteOrNull at store update boundaries and drop invalid voltage paths.

Fixes audit F-08.

Co-authored-by: Cursor <cursoragent@cursor.com>
Video URLs from localStorage or env were passed straight into img/video src,
and custom map tile env vars had no scheme check. Sanitize to http/https only,
reject credential URLs and dangerous schemes, and preserve tile {z}/{x}/{y}
placeholders.

Fixes audit F-17.

Co-authored-by: Cursor <cursoragent@cursor.com>
The attitude HUD already dimmed after 3 s without packets, but the sidebar
and map drone marker still looked live. Dim sidebar metrics, grey the drone
point, and hide ground-target overlay while link data is stale.

Fixes audit F-04 (partial).

Co-authored-by: Cursor <cursoragent@cursor.com>
Reason codes were hidden whenever quality was warn but coordinates still
rendered, which understates trust risk. Always list active reason codes with
human labels and show a calibration/datum caveat on warn estimates.

Fixes audit F-09 (partial).

Co-authored-by: Cursor <cursoragent@cursor.com>
Port and parser error handlers only logged; the MAVLink transform and serial
handle could stay open after a fault. Remove listeners, destroy the parser
stream, and close the port on disconnect or error so reconnect stays reliable.

Fixes audit F-18.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sync root package.json after the six incremental security/safety commits
on this branch.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace require() inside vi.hoisted with plain mock objects so
@typescript-eslint/no-require-imports passes in CI while keeping the
disconnect teardown assertion.

Co-authored-by: Cursor <cursoragent@cursor.com>
Vite pulled esbuild 0.28.0, which fails pnpm audit --prod (GHSA-gv7w-rqvm-qjhr
and GHSA-g7r4-m6w7-qqqr). Pin esbuild >= 0.28.1 via pnpm overrides so the
production dependency audit step passes in CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gitfeber gitfeber merged commit 530f18c into main Jun 12, 2026
2 checks passed
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.

1 participant