HIGH8.8
GHSA-g4xw-jxrg-5f6m
next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content
Quick fix
GHSA-g4xw-jxrg-5f6m — next-mdx-remote: upgrade to the fixed version with the command below.
npm install next-mdx-remote@6.0.0Details
The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of MDX content.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-0969[ADVISORY]
- https://github.com/hashicorp/next-mdx-remote/commit/4d527fdcaed911b87f427d0b4d3c711e817fa4b3[WEB]
- https://discuss.hashicorp.com/t/hcsec-2026-01-arbitrary-code-execution-in-react-server-side-rendering-of-untrusted-mdx-content/77155[WEB]
- https://github.com/hashicorp/next-mdx-remote[PACKAGE]
- https://github.com/hashicorp/next-mdx-remote/releases/tag/v6.0.0[WEB]