The issue arises from a bug in the underlying matrix-org/node-irc library, causing matrix-appservice-irc to incorrectly parse multiple modes in a single mode command. This can potentially result in the wrong user being given permissions. Mode commands can only be executed by privileged users, so exploitation requires an operator to be tricked into running the command on behalf of an attacker.