Skip to content

fix(security): enforce loopback in local mode - #177

Merged
ttbombadil merged 1 commit into
mainfrom
fix/sec-02-local-loopback
Oct 4, 2026
Merged

ttbombadil merged 1 commit into
mainfrom
fix/sec-02-local-loopback

Conversation

@ttbombadil

Copy link
Copy Markdown
Collaborator

Summary

  • Restrict local-mode listeners to numeric loopback addresses by default.
  • Require UNOSIM_UNSAFE_ALLOW_EXTERNAL_LOCAL_BIND=true before any external local-mode bind.
  • Document the unsafe opt-in and add coverage for loopback, external hosts, and explicit opt-in.

Verification

  • RED: config test failed because 0.0.0.0 was accepted without an opt-in.
  • GREEN: npm run test:unit (2,744 passed, 1 skipped), npm run check, npm run check:docs.

@ttbombadil
ttbombadil merged commit 5ea6961 into main Oct 4, 2026
4 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