CVE-2025-27146: Matrix IRC Bridge allows IRC command injection to own puppeted user
2.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.15991%
CWE
Published
2/25/2025
Updated
2/25/2025
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| matrix-appservice-irc | npm | < 3.0.4 | 3.0.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper input sanitization in the topic-setting functionality. The commit diff shows the patched version adds sanitization by replacing newlines with pipes in BridgedClient.ts. The original vulnerability (CWE-77/CWE-88) occurred because raw user-supplied topic data containing newline characters could terminate the TOPIC command and execute subsequent IRC commands. The affected function is clearly identified by the patch location and the vulnerability description matching command injection via topic manipulation.