GHSA-52rh-5rpj-c3w6 json
Improper handling of multiline messages in node-irc
published 4y ago modified 9mo ago
- cvss
- 8.0
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
node-irc is a socket wrapper for the IRC protocol that extends Node.js' EventEmitter. The vulnerability allows an attacker to manipulate a Matrix user into executing IRC commands by having them reply to a maliciously crafted message. Incorrect handling of a CR character allowed for making part of the message be sent to the IRC server verbatim rather than as a message to the channel. The vulnerability has been patched in node-irc version 1.2.1.
Patch / fix
- npm matrix-org-irc 1.2.1
Is GHSA-52rh-5rpj-c3w6 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | matrix-org-irc | <1.2.1 |
1.2.1 |
Classification
References
-
github.com
/matrix-org/node-irc/commit/2976c856df37660a9d664e94c857c796de2e34f7
web
-
github.com
/matrix-org/node-irc/commit/e3eb9c15f8240e9c92365f5ffc3944469229771b
web
-
github.com
/matrix-org/node-irc/security/advisories/GHSA-52rh-5rpj-c3w6
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-29166
advisory
-
github.com
/matrix-org/node-irc
package
-
matrix.org
/blog/2022/05/04/0-34-0-security-release-for-matrix-appservice-irc-high-severity
web
Sources
- GitHub Advisory GHSA-52rh-5rpj-c3w6
Fencer Intel 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.