Vulnerabilities in pkg:npm/matrix-appservice-irc
PACKAGECVE-2025-27146 is a LOW (CVSS 2.7) matrix irc bridge allows irc vulnerability (CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')) affecting Matrix appservice irc libraries in the npm ecosystem. The issue involves matrix irc bridge allows irc command injection to own puppeted user. Remediation is available by upgrading affected packages to version 3.0.4.
pkg:npm/matrix-appservice-irc
Vulnerability advisories affecting package pkg:npm/matrix-appservice-irc. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5mvm-89c9-9gm5 | CVE-2025-27146 | LOW | Matrix IRC Bridge allows IRC command injection to own puppeted user |
| GHSA-w9mh-5x8j-9754 | CVE-2024-39691 | MODERATE | Malicious Matrix homeserver can leak truncated message content of messages it shouldn't have access to |
| GHSA-3pmj-jqqp-2mj3 | CVE-2023-38690 | MODERATE | matrix-appservice-irc IRC command injection via admin commands containing newlines |
| GHSA-wm4w-7h2q-3pf7 | CVE-2024-32000 | MODERATE | Matrix IRC Bridge truncated content of messages can be leaked |
| GHSA-c7hh-3v6c-fj4q | CVE-2023-38700 | LOW | matrix-appservice-irc events can be crafted to leak parts of targeted messages from other bridged rooms |
| GHSA-ffwf-47x2-jpr8 | CVE-2022-3971 | MODERATE | Matrix-appservice-irc vulnerable to sql injection via roomIds argument |
| GHSA-cq7q-5c67-w39w | CVE-2022-39202 | MODERATE | matrix-appservice-irc vulnerable to IRC mode parameter confusion |
| GHSA-xvqg-mv25-rwvw | CVE-2022-39203 | HIGH | Parsing issue in matrix-org/node-irc leading to room takeovers |
| GHSA-37hr-348p-rmf4 | CVE-2022-29166 | HIGH | Improper handling of multiline messages in node-irc affects matrix-appservice-irc |
CVE-2025-27146 at a Glance
Security Impact
CVSS: 2.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2025-27146
To remediate this vulnerability, upgrade all affected Matrix appservice irc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install matrix-appservice-irc@3.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls matrix-appservice-irc
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-27146, inspect your project dependencies using npm:
npm ls matrix-appservice-irc
Analyze the terminal output to locate any version of Matrix appservice irc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.4), your application is affected.
Note: The npm ls matrix-appservice-irc command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection'), where the product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string. In Matrix appservice irc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-27146 Affected Matrix appservice irc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
matrix-appservice-irc
|
npm |
< 3.0.4
|
3.0.4
|
References
Frequently Asked Questions
What is CVE-2025-27146?
Which Matrix appservice irc versions are affected?
What version fixes CVE-2025-27146?
Is matrix-appservice-irc affected?
What is the CVSS score of CVE-2025-27146?
What CWE is associated with CVE-2025-27146?
How can I check npm dependencies for CVE-2025-27146?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5mvm-89c9-9gm5",
"modified" : "2025-02-25T21:46:09Z",
"published" : "2025-02-25T18:29:34Z",
"aliases" : [ "CVE-2025-27146" ],
"summary" : "Matrix IRC Bridge allows IRC command injection to own puppeted user",
"details" : "### Impact\nThe matrix-appservice-irc bridge up to version 3.0.3 contains a vulnerability which can lead to arbitrary IRC command execution as the puppeted user. The attacker can only inject commands executed as their own IRC user.\n\n### Patches\nThe vulnerability has been patched in matrix-appservice-irc version 3.0.4.\n\n### For more information\nIf you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:security@matrix.org).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "matrix-appservice-irc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-appservice-irc/security/advisories/GHSA-5mvm-89c9-9gm5"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27146"
}, {
"type" : "WEB",
"url" : "https://github.com/matrix-org/matrix-appservice-irc/commit/74f02c8e11f16ed1b355700092c1aa9c036a11bd"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/matrix-org/matrix-appservice-irc"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77", "CWE-88" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-25T18:29:34Z",
"nvd_published_at" : "2025-02-25T20:15:38Z"
}
}