Open-source package vulnerability · npm
CVE-2026-0969: next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content
highCVSS 3.1 8.8GHSA-g4xw-jxrg-5f6m
The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.
Published Feb 12, 2026 · Updated Feb 24, 2026
Affected packages
next-mdx-remote
- Ecosystem
- npm
- Affected
- >= 4.3.0, < 6.0.0
- Fixed in
- 6.0.0
- Check
npm ls next-mdx-remote
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.
Credited to dduzgun-security.
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
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
