Advisory

GHSA-52rh-5rpj-c3w6

Also known as: None

Summary

Improper handling of multiline messages in node-irc

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-05 16:00 UTC
Modified
2026-02-11 22:03 UTC

Affected packages and fixes

matrix-org-irc

npm · All systems

Affected

  • introduced 0, fixed 1.2.1 (semver)

Fixed versions

1.2.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences