CVE-2022-39202

IRC mode parameter confusion in matrix-appservice-irc

MEDIUM
6.3
CVSS Score
Published: September 13, 2022 at 06:10 PM UTC
Updated: June 17, 2026 at 04:57 AM UTC
2 products affected across 2 vendorsMatrix Irc BridgeMatrix Irc Bridge

Using matrix-appservice-irc by matrix-org?

Get instant alerts when new vulnerabilities affect matrix-appservice-irc - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.3
Exploit prediction
EPSS 0.9%
SSVC
No known exploit

Description

matrix-appservice-irc is an open source Node.js IRC bridge for Matrix. The Internet Relay Chat (IRC) protocol allows you to specify multiple modes in a single mode command. Due to a bug in the underlying matrix-org/node-irc library, affected versions of matrix-appservice-irc perform parsing of such modes incorrectly, potentially resulting in the wrong user being given permissions. Mode commands can only be executed by privileged users, so this can only be abused if an operator is tricked into running the command on behalf of an attacker. The vulnerability has been patched in matrix-appservice-irc 0.35.0. As a workaround users should refrain from entering mode commands suggested by untrusted users. Avoid using multiple modes in a single command.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.35.0
Affected range stops below 0.35.0, so it looks safe — our inference, not a vendor statement
v < 0.35.0
Affected range stops below 0.35.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-269

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card