GHSA-8796-gc9j-63rv

Suggest an improvement
Source
https://github.com/advisories/GHSA-8796-gc9j-63rv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8796-gc9j-63rv/GHSA-8796-gc9j-63rv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8796-gc9j-63rv
Aliases
Published
2021-05-17T20:51:16Z
Modified
2026-07-08T06:49:32Z
Severity
  • 4.2 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L CVSS Calculator
Summary
File upload local preview can run embedded scripts after user interaction
Details

Impact

When uploading a file, the local file preview can lead to execution of scripts embedded in the uploaded file, but only after several user interactions to open the preview in a separate tab. This only impacts the local user while in the process of uploading. It cannot be exploited remotely or by other users.

Patches

This has been fixed by https://github.com/matrix-org/matrix-react-sdk/pull/5981, which is included in 3.21.0.

Workarounds

There are no known workarounds.

Database specific
{
    "cwe_ids": [
        "CWE-74"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-17T16:51:38Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

npm / matrix-react-sdk

Package

Name
matrix-react-sdk
View open source insights on deps.dev
Purl
pkg:npm/matrix-react-sdk

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.21.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-8796-gc9j-63rv/GHSA-8796-gc9j-63rv.json"