Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') Affecting matrix-react-sdk package, versions <3.71.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MATRIXREACTSDK-5461998
  • published26 Apr 2023
  • disclosed26 Apr 2023
  • creditUnknown

Introduced: 26 Apr 2023

CVE-2023-30609  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade matrix-react-sdk to version 3.71.0 or higher.

Overview

matrix-react-sdk is a SDK for matrix.org using React

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') such that plain text messages containing HTML tags are rendered as HTML in the search results. To exploit this, an attacker needs to trick a user into searching for a specific message containing an HTML injection payload.

Note: No cross-site scripting attack is possible due to the hardcoded content security policy.

Workaround

Users who are unable to upgrade to the fixed version can restart the client to clear the HTML injection.

CVSS Scores

version 3.1