CVE-2022-39202 json
IRC mode parameter confusion in matrix-appservice-irc
published 2022-09-13 4 y ago modified 2026-06-17 4 mo ago also GHSA-cq7q-5c67-w39w , EUVD-2022-6782
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm matrix-appservice-irc 0.35.0
- matrix matrix_irc_bridge 0.35.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.90% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | matrix-appservice-irc | <0.35.0 |
0.35.0 |
Affected products
- matrix-org matrix-appservice-irc
Classification
- Weakness
-
- CWE-269 Improper Privilege Management
References
-
github.com
/matrix-org/matrix-appservice-irc/commit/5f87dbed87b4b6dc49b7965ff152ee8535719e67
web, patch, third-party-advisory
-
matrix.org
/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity/
vendor-advisory
-
github.com
/matrix-org/matrix-appservice-irc/security/advisories/GHSA-cq7q-5c67-w39w
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39202
advisory
-
github.com
/matrix-org/matrix-appservice-irc
package
-
matrix.org
/blog/2022/09/13/security-release-of-matrix-appservice-irc-0-35-0-high-severity
web
Sources
- CVE List CVE-2022-39202
- GitHub Advisory GHSA-cq7q-5c67-w39w
- NVD CVE-2022-39202
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.