Vulnerability advisory

CVE-2022-36059

Prototype pollution in matrix-js-sdk

Published Updated OSV record ↗

Also known as GHSA-rfv9-x7hh-xc32

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/matrix-org/matrix-js-sdk ↗
All commits before 1efeb1ec0ef6324a262e606716ea435890a6b39a1efeb1ec0ef6324a262e606716ea435890a6b39a
Also listed as affected (56)
  • v19.4.0-rc.1
  • v8.1.0
  • v8.1.0-rc.1
  • v8.0.0
  • v7.1.0
  • v7.1.0-rc.1
  • v5.0.1
  • v2.4.1
  • v2.0.1
  • v2.0.1-rc.2
  • v2.0.1-rc.1
  • v1.0.0
  • v1.0.0-rc.2
  • v1.0.0-rc.1
  • v0.11.0
  • v0.11.0-rc.1
  • v0.10.7
  • v0.10.7-rc.1
  • v0.10.5
  • v0.10.5-rc.1
  • v0.10.3
  • v0.10.2
  • v0.10.3-rc.1
  • v0.10.2-rc.1
  • v0.8.3
  • v0.8.3-rc.1
  • v0.8.2
  • v0.8.1
  • v0.8.1-rc.1
  • v0.8.0
  • v0.7.10
  • v0.7.9
  • v0.7.4
  • v0.7.4-rc.1
  • v0.7.2
  • v0.7.1-rc.1
  • v0.6.4
  • v0.6.4-rc.2
  • v0.6.2
  • v0.6.1
  • v0.6.0-rc2
  • v0.6.0-rc1
  • v0.5.6
  • v0.5.5
  • v0.5.4
  • v0.5.3
  • v0.5.2
  • v0.5.1
  • v0.5.0
  • v0.4.2
  • v0.4.1
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.1
  • v0.1.0

Description

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 19.4.0 events sent with special strings in key places can temporarily disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer. This issue has been fixed in matrix-js-sdk 19.4.0 and users are advised to upgrade. Users unable to upgrade may mitigate this issue by redacting applicable events, waiting for the sync processor to store data, and restarting the client. Alternatively, redacting the applicable events and clearing all storage will often fix most perceived issues. In some cases, no workarounds are possible.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools