MEDIUM5.6
GHSA-ffwf-47x2-jpr8
Matrix-appservice-irc vulnerable to sql injection via roomIds argument
Quick fix
GHSA-ffwf-47x2-jpr8 — matrix-appservice-irc: upgrade to the fixed version with the command below.
npm install matrix-appservice-irc@0.36.0Details
A vulnerability was found in matrix-appservice-irc up to 0.35.1. This vulnerability affects the file src/datastore/postgres/PgDataStore.ts. The manipulation of the argument roomIds leads to sql injection. Upgrading to version 0.36.0 is able to address this issue. The name of the patch is 179313a37f06b298150edba3e2b0e5a73c1415e7. It is recommended to upgrade the affected component.
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/matrix-appservice-irc
Introduced in:
0Fixed in: 0.36.0Fix
npm install matrix-appservice-irc@0.36.0References
- https://nvd.nist.gov/vuln/detail/CVE-2022-3971[ADVISORY]
- https://github.com/matrix-org/matrix-appservice-irc/pull/1619[WEB]
- https://github.com/matrix-org/matrix-appservice-irc/commit/179313a37f06b298150edba3e2b0e5a73c1415e7[WEB]
- https://github.com/matrix-org/matrix-appservice-irc[PACKAGE]
- https://github.com/matrix-org/matrix-appservice-irc/releases/tag/0.36.0[WEB]
- https://vuldb.com/?id.213550[WEB]