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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2022-09-13T18:10:15.000Z
- Modified: 2026-06-17T04:57:54.377Z
- Also known as: GHSA-cq7q-5c67-w39w
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- matrix-org matrix-appservice-irc: < 0.35.0
- matrix-appservice-irc (npm): before 0.35.0
- matrix matrix_irc_bridge: before 0.35.0

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L`

## References

- <https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-cq7q-5c67-w39w> (third-party-advisory, web)
- <https://github.com/matrix-org/matrix-appservice-irc/commit/5f87dbed87b4b6dc49b7965ff152ee8535719e67> (patch, third-party-advisory, web)
- <https://matrix.org/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39202> (advisory)
- <https://github.com/matrix-org/matrix-appservice-irc> (package)
- <https://matrix.org/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity> (web)

## Sources

- CVE List: [CVE-2022-39202](https://www.cve.org/CVERecord?id=CVE-2022-39202), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-cq7q-5c67-w39w](https://github.com/advisories/GHSA-cq7q-5c67-w39w), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39202](https://nvd.nist.gov/vuln/detail/CVE-2022-39202), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39202 · Whole record: https://cve.day/CVE-2022-39202.json · Rebuilt by cve.day 2026-11-25T22:58:14.874Z
