Vulnerabilities in pkg:npm/matrix-appservice-irc

PACKAGE
Advisory Identifier: GHSA-5mvm-89c9-9gm5
Advisory Summary

CVE-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.

9 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/matrix-appservice-irc

9 Known Advisory Record(s)

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

CVE Identifier CVE-2025-27146
GHSA Identifier GHSA-5mvm-89c9-9gm5
Severity LOW
CVSS v3.1 Base Score 2.7
CWE Classification CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected Product Matrix appservice irc
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

matrix-appservice-irc fixed: 3.0.4
npm install matrix-appservice-irc@3.0.4
Verify Direct and Transitive Dependencies

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

### Impact The 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. ### Patches The vulnerability has been patched in matrix-appservice-irc version 3.0.4. ### For more information If you have any questions or comments about this advisory, please email us at [security at matrix.org](mailto:security@matrix.org).

CVE-2025-27146 Affected Matrix appservice irc Versions

1 component(s)
Fixed Versions:
3.0.4
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?
CVE-2025-27146 is a security vulnerability in Matrix appservice irc involving Matrix IRC Bridge allows IRC command injection to own puppeted user under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection').
Which Matrix appservice irc versions are affected?
Affected versions include releases prior to 3.0.4 across affected packages: matrix-appservice-irc.
What version fixes CVE-2025-27146?
Upgrading to 3.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is matrix-appservice-irc affected?
Yes, matrix-appservice-irc is affected in releases prior to 3.0.4. Upgrade your dependency to 3.0.4 or later.
What is the CVSS score of CVE-2025-27146?
CVE-2025-27146 has a CVSS v3.1 base score of 2.7 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2025-27146?
CVE-2025-27146 is classified under CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (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.).
How can I check npm dependencies for CVE-2025-27146?
Run the dependency tree command: 'npm ls matrix-appservice-irc'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}