# CVE-2022-39202: IRC mode parameter confusion in matrix-appservice-irc

- Priority: **Routine**
- Reason: Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-09-13 · Modified: 2025-04-23
- Aliases: GHSA-cq7q-5c67-w39w
- Record: https://cvemate.com/vulnerability/CVE-2022-39202 · JSON: https://cvemate.com/vulnerability/CVE-2022-39202/json

## Description

```text
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.
```

## Signals

- CVSS: 6.3 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
- EPSS: 0.925%, percentile 61.637%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- matrix-org matrix-appservice-irc: \< 0.35.0
- matrix matrix\_irc\_bridge: \< 0.35.0
- Npm matrix-appservice-irc (Npm): \< 0.35.0

## References

- <https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-cq7q-5c67-w39w>
- <https://github.com/matrix-org/matrix-appservice-irc/commit/5f87dbed87b4b6dc49b7965ff152ee8535719e67>
- <https://matrix.org/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity/>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39202>
- <https://github.com/matrix-org/matrix-appservice-irc>
- <https://matrix.org/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity>

---

Data as of 2026-12-05T05:31:36.623Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
