This issue was addressed through improved state management. This issue is fixed in iOS 18 and iPadOS 18. An app may gain unauthorized access to Local Network.
The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.