GitHub Advisoryadvisory · npm
GHSA-g4xw-jxrg-5f6m next-mdx-remote affected by arbitrary code execution in React server-side rendering of untrusted MDX content
HIGH
Official page ↗
- Aliases
- CVE-2026-0969
- Ecosystem
- npm
- Packages
- next-mdx-remote
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-94
- Reviewed
- 2026-02-24
Affected packages
• npm next-mdx-remote: >= 4.3.0, < 6.0.0 → fixed in 6.0.0
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.
Related
Alias · CVE (1)
- CVE-2026-0969 The serialize function used to compile MDX in next-mdx-remote is vulnerable to arbitrary code execution due to insufficient sanitization of… vulnerability
Weakness · CWE (1)
- CWE-94 Improper Control of Generation of Code weakness
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