hashicorp/next-mdx-remote · Security
next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content
- GHSA ID
- GHSA-g4xw-jxrg-5f6m
- CVE ID
- CVE-2026-0969
- Severity
- high
- Published
- Updated
- CVSS
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 8.8 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Description
The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-0969 ↗
- https://discuss.hashicorp.com/t/hcsec-2026-01-arbitrary-code-execution-in-react-server-side-rendering-of-untrusted-mdx-content/77155 ↗
- https://github.com/hashicorp/next-mdx-remote/commit/4d527fdcaed911b87f427d0b4d3c711e817fa4b3 ↗
- https://github.com/hashicorp/next-mdx-remote/releases/tag/v6.0.0 ↗
- https://github.com/advisories/GHSA-g4xw-jxrg-5f6m ↗