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

    Threat Intelligence

    EPSS
    0.1% (42nd 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 ID SNYK-JS-MATRIXREACTSDK-5461998
  • published 26 Apr 2023
  • disclosed 26 Apr 2023
  • credit Unknown

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
Expand this section

Snyk

Recommended
6.1 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Changed
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None
Expand this section

NVD

4.7 medium